Skip to content

Commit

Permalink
ci: set-output deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed Aug 20, 2024
1 parent 8444026 commit 66c0934
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ on:
jobs:
compile:
runs-on: ubuntu-latest
env:
flags: --allow-env --allow-run --allow-net --allow-read --allow-write --unstable-ffi --allow-ffi --unstable-kv
steps:
- uses: actions/checkout@v4
- name: Get commit SHA
id: version
run: echo "::set-output name=commit_sha::$(git log -n1 --format='%h')"
run: echo commit_sha=$(git log -n1 --format='%h') >> "$GITHUB_OUTPUT"
- uses: denoland/setup-deno@v1
- name: Compile x86_64
run: |
deno compile --allow-env --allow-run --allow-net --allow-read --allow-write --unstable-ffi --allow-ffi --unstable-kv --target x86_64-apple-darwin music-rpc.ts
deno compile ${{ env.flags }} --target x86_64-apple-darwin music-rpc.ts
mv music-rpc music-rpc-${{ steps.version.outputs.commit_sha }}-x86_64-apple-darwin
- name: Upload x86_64
uses: actions/upload-artifact@v4
Expand All @@ -27,7 +29,7 @@ jobs:
path: music-rpc-${{ steps.version.outputs.commit_sha }}-x86_64-apple-darwin
- name: Compile aarch64
run: |
deno compile --allow-env --allow-run --allow-net --allow-read --allow-write --unstable-ffi --allow-ffi --unstable-kv --target aarch64-apple-darwin music-rpc.ts
deno compile ${{ env.flags }} --target aarch64-apple-darwin music-rpc.ts
mv music-rpc music-rpc-${{ steps.version.outputs.commit_sha }}-aarch64-apple-darwin
- name: Upload aarch64
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 66c0934

Please sign in to comment.