-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (46 loc) · 1.71 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Deno Compile
on:
push:
branches:
- main
jobs:
changelog:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.changelog.outputs.tag }}
skipped: ${{ steps.changelog.outputs.skipped }}
output: ${{steps.changelog.outputs.clean_changelog}}
steps:
- uses: actions/checkout@v4
- name: Conventional Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v4.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
compile:
strategy:
matrix:
target: [{target: x86_64-unknown-linux-gnu, file: linux-ollamamodelupdate}, {target: x86_64-pc-windows-msvc, file: win-ollamamodelupdate.exe}, {target: x86_64-apple-darwin, file: macos-x86-ollamamodelupdate}, {target: aarch64-apple-darwin, file: macos-arm64-ollamamodelupdate}]
runs-on: ubuntu-latest
needs: changelog
if: ${{ needs.changelog.outputs.skipped == 'false' }}
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: 1.37.2
- run:
deno compile --allow-net --target ${{ matrix.target.target }} --output ${{ matrix.target.file}} update.ts
- name: Release
uses: softprops/action-gh-release@v1
if: ${{ needs.changelog.outputs.skipped == 'false' }}
with:
tag_name: ${{ needs.changelog.outputs.tag }}
name: ${{ needs.changelog.outputs.tag }}
body: ${{ needs.changelog.outputs.output }}
files: |
linux-ollamamodelupdate
win-ollamamodelupdate.exe
macos-x86-ollamamodelupdate
macos-arm64-ollamamodelupdate
token: ${{ secrets.GITHUB_TOKEN }}