Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ndm13 committed Dec 24, 2022
2 parents 3c9b0a7 + c64cd7e commit f4b44a4
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,49 @@ permissions:
contents: write

jobs:
release:
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/setup-deno@v1
uses: denoland/setup-deno@9db7f66e8e16b5699a514448ce994936c63f0d54
with:
deno-version: v1.x
uses: denoland/[email protected]

- name: Compile x86_64-unknown-linux-gnu
- name: Compile ${{ matrix.target }}
run: |
deno compile --allow-run --allow-env --allow-read --allow-write --target x86_64-unknown-linux-gnu --output release/x86_64-unknown-linux-gnu/automkv automkv.ts
tar -czvf release/x86_64-unknown-linux-gnu.tar.gz ./release/x86_64-unknown-linux-gnu/
- name: Compile x86_64-pc-windows-msvc
run: |
deno compile --allow-run --allow-env --allow-read --allow-write --target x86_64-pc-windows-msvc --output release/automkv.exe automkv.ts
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
- name: Compile x86_64-apple-darwin
run: |
deno compile --allow-run --allow-env --allow-read --allow-write --target x86_64-apple-darwin --output release/x86_64-apple-darwin/automkv automkv.ts
tar -czvf release/x86_64-apple-darwin.tar.gz ./release/x86_64-apple-darwin/
- 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 aarch64-apple-darwin
- name: Compile Windows
run: |
deno compile --allow-run --allow-env --allow-read --allow-write --target aarch64-apple-darwin --output release/aarch64-apple-darwin/automkv automkv.ts
tar -czvf release/aarch64-apple-darwin.tar.gz ./release/aarch64-apple-darwin/
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

0 comments on commit f4b44a4

Please sign in to comment.