-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (44 loc) · 1.42 KB
/
release.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
51
52
53
54
55
56
name: Release
on:
release:
types: ['published']
permissions:
contents: write
jobs:
compile-unixlike:
name: Compile Unix-Like
runs-on: ubuntu-latest
strategy:
matrix:
target: ['x86_64-unknown-linux-gnu', 'x86_64-apple-darwin', 'aarch64-apple-darwin']
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/[email protected]
- name: Compile ${{ matrix.target }}
run: |
deno compile --allow-run --allow-env --allow-read --allow-write --target ${{ matrix.target }} --output build/automkv automkv.ts
mkdir release
tar -czvf release/${{ matrix.target }}.tar.gz ./build
- uses: ncipollo/release-action@v1
with:
artifacts: "release/*"
allowUpdates: true
omitBodyDuringUpdate: true
compile-windows:
name: Compile Windows
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/[email protected]
- name: Compile Windows
run: |
deno compile --allow-run --allow-env --allow-read --allow-write --target x86_64-pc-windows-msvc --output release/automkv.exe automkv.ts
- uses: ncipollo/release-action@v1
with:
artifacts: "release/*"
allowUpdates: true
omitBodyDuringUpdate: true