More refactoring and added sammi_sail example #6
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: compile | |
on: | |
push: | |
pull_request: | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: vx.x.x | |
- uses: actions/checkout@v3 | |
- name: Compile | |
run: | | |
deno compile --target aarch64-apple-darwin --allow-net --allow-read -o build/twitch-json-sail-mac-aarch64 examples/twitch_json_sail.ts | |
deno compile --target x86_64-apple-darwin --allow-net --allow-read -o build/twitch-json-sail-mac-x86_64 examples/twitch_json_sail.ts | |
deno compile --target x86_64-pc-windows-msvc --allow-net --allow-read -o build/twitch-json-sail-windows-x86_64.exe examples/twitch_json_sail.ts | |
deno compile --target x86_64-unknown-linux-gnu --allow-net --allow-read -o build/twitch-json-sail-linux-x86_64 examples/twitch_json_sail.ts | |
deno compile --target x86_64-pc-windows-msvc --allow-net --allow-read -o build/sammi-sail-windows-x86_64.exe examples/sammi_sail.ts | |
- name: Upload macOS aarch64 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sail-mac-aarch64 | |
path: build/sail-mac-aarch64 | |
- name: Upload macOS x86_64 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sail-mac-x86_64 | |
path: build/sail-mac-x86_64 | |
- name: Upload Windows x86_64 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sail-windows-x86_64.exe | |
path: build/sail-windows-x86_64.exe | |
- name: Upload Linux x86_64 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sail-linux-x86_64 | |
path: build/sail-linux-x86_64 | |