From 512455c593c0841d155d849794547929900a2073 Mon Sep 17 00:00:00 2001 From: peps1 Date: Sun, 20 Oct 2024 20:35:11 -0700 Subject: [PATCH] ci: fix release job more --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff61435..eff2127 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,11 +15,11 @@ jobs: strategy: matrix: compile-targets: [ - { "target": "x86_64-unknown-linux-gnu", "dir": "linux-x86_64" }, - { "target": "aarch64-unknown-linux-gnu", "dir": "linux-aarch64" }, - { "target": "x86_64-pc-windows-msvc", "dir": "windows-x86_64" }, - { "target": "x86_64-apple-darwin", "dir": "macos-x86_64" }, - { "target": "aarch64-apple-darwin", "dir": "macos-aarch64" }, + { "target": "x86_64-unknown-linux-gnu", "platform": "linux-x86_64" }, + { "target": "aarch64-unknown-linux-gnu", "platform": "linux-aarch64" }, + { "target": "x86_64-pc-windows-msvc", "platform": "windows-x86_64" }, + { "target": "x86_64-apple-darwin", "platform": "macos-x86_64" }, + { "target": "aarch64-apple-darwin", "platform": "macos-aarch64" }, ] steps: @@ -31,11 +31,11 @@ jobs: deno-version: v2.x - run: deno install - run: deno test --allow-env --allow-read --allow-sys --coverage --trace-leaks src/ - - run: deno compile --allow-env --allow-read --allow-write --allow-sys --allow-net --target ${{ matrix.compile-targets.target }} -o bin/${{ matrix.compile-targets.dir }}/srrup src/index.ts + - run: deno compile --allow-env --allow-read --allow-write --allow-sys --allow-net --target ${{ matrix.compile-targets.target }} -o bin/srrup-${{ matrix.compile-targets.platform }} src/index.ts - uses: actions/upload-artifact@v4 with: - name: srrup-${{ matrix.compile-targets.dir }} - path: bin/${{ matrix.compile-targets.dir }}/srrup* + name: srrup-${{ matrix.compile-targets.platform }} + path: bin/srrup* retention-days: 7 release-github: