diff --git a/.github/workflows/build_binary.yml b/.github/workflows/build_binary.yml index 2a0cffa..9201bd1 100644 --- a/.github/workflows/build_binary.yml +++ b/.github/workflows/build_binary.yml @@ -20,13 +20,13 @@ jobs: - name: "Setup deno" uses: denoland/setup-deno@v1 with: - deno-version: "1.25.1" + deno-version: "1.40.2" - name: "Build binary" run: | - 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 + deno compile --allow-read --allow-net --lock=lock.json --target x86_64-unknown-linux-gnu --output=./tonkaz_x86_64-unknown-linux-gnu src/main.ts + deno compile --allow-read --allow-net --lock=lock.json --target x86_64-apple-darwin --output=./tonkaz_x86_64-apple-darwin src/main.ts + deno compile --allow-read --allow-net --lock=lock.json --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 d1b7d4a..c01eac9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,12 +16,12 @@ jobs: - name: "Setup deno" uses: denoland/setup-deno@v1 with: - deno-version: "1.25.1" + deno-version: "1.40.2" - name: "Build binary" run: | - 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 + deno compile --allow-read --allow-net --lock=lock.json --target x86_64-unknown-linux-gnu --output=./tonkaz_x86_64-unknown-linux-gnu src/main.ts + deno compile --allow-read --allow-net --lock=lock.json --target x86_64-apple-darwin --output=./tonkaz_x86_64-apple-darwin src/main.ts + deno compile --allow-read --allow-net --lock=lock.json --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: