feat: deno v2 support #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: ["main", "renovate/*"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
env: | |
flags: --allow-env --allow-run --allow-net --allow-read --allow-write --allow-ffi --allow-import --unstable-kv | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get commit SHA | |
id: version | |
run: echo commit_sha=$(git log -n1 --format='%h') >> "$GITHUB_OUTPUT" | |
- uses: denoland/setup-deno@v2 | |
- name: Compile x86_64 | |
run: | | |
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 | |
with: | |
name: music-rpc-${{ steps.version.outputs.commit_sha }}-x86_64-apple-darwin | |
path: music-rpc-${{ steps.version.outputs.commit_sha }}-x86_64-apple-darwin | |
- name: Compile aarch64 | |
run: | | |
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 | |
with: | |
name: music-rpc-${{ steps.version.outputs.commit_sha }}-aarch64-apple-darwin | |
path: music-rpc-${{ steps.version.outputs.commit_sha }}-aarch64-apple-darwin |