From 304c136af12dd6a8b0c58e03315d6c7612ec0b46 Mon Sep 17 00:00:00 2001 From: suecharo Date: Sat, 17 Sep 2022 14:49:32 +0000 Subject: [PATCH] Fix build binary action --- .github/workflows/build_binary.yml | 6 +++--- .github/workflows/deploy.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_binary.yml b/.github/workflows/build_binary.yml index b8c0919..2a0cffa 100644 --- a/.github/workflows/build_binary.yml +++ b/.github/workflows/build_binary.yml @@ -24,9 +24,9 @@ jobs: - name: "Build binary" run: | - deno compile --target x86_64-unknown-linux-gnu --output=./tonkaz_x86_64-unknown-linux-gnu src/main.ts - deno compile --target x86_64-apple-darwin --output=./tonkaz_x86_64-apple-darwin src/main.ts - deno compile --target aarch64-apple-darwin --output=./tonkaz_aarch64-apple-darwin src/main.ts + deno compile --allow-read --allow-net --target x86_64-unknown-linux-gnu --output=./tonkaz_x86_64-unknown-linux-gnu src/main.ts + deno compile --allow-read --allow-net --target x86_64-apple-darwin --output=./tonkaz_x86_64-apple-darwin src/main.ts + deno compile --allow-read --allow-net --target aarch64-apple-darwin --output=./tonkaz_aarch64-apple-darwin src/main.ts - name: "Upload x86_64-unknown-linux-gnu binary" uses: actions/upload-artifact@v3 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 893fa48..d1b7d4a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,9 +19,9 @@ jobs: deno-version: "1.25.1" - name: "Build binary" run: | - deno compile --target x86_64-unknown-linux-gnu --output=./tonkaz_x86_64-unknown-linux-gnu src/main.ts - deno compile --target x86_64-apple-darwin --output=./tonkaz_x86_64-apple-darwin src/main.ts - deno compile --target aarch64-apple-darwin --output=./tonkaz_aarch64-apple-darwin src/main.ts + deno compile --allow-read --allow-net --target x86_64-unknown-linux-gnu --output=./tonkaz_x86_64-unknown-linux-gnu src/main.ts + deno compile --allow-read --allow-net --target x86_64-apple-darwin --output=./tonkaz_x86_64-apple-darwin src/main.ts + deno compile --allow-read --allow-net --target aarch64-apple-darwin --output=./tonkaz_aarch64-apple-darwin src/main.ts - name: "Upload x86_64-unknown-linux-gnu binary" uses: actions/upload-artifact@v3 with: