From 5e99a470f31d9e75d03213a2d75b6f417b095c9a Mon Sep 17 00:00:00 2001 From: share121 <2854631158@qq.com> Date: Thu, 6 Feb 2025 18:27:05 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e245f1a..2ec33eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,14 +12,6 @@ permissions: jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - targets: - - x86_64-unknown-linux-gnu - - aarch64-unknown-linux-gnu - - x86_64-pc-windows-msvc - - x86_64-apple-darwin - - aarch64-apple-darwin steps: - uses: actions/checkout@v4 @@ -29,16 +21,24 @@ jobs: deno-version: v2.x - name: Build - run: deno compile --target ${{matrix.targets}} --allow-write --allow-net --allow-read --include worker.ts main.ts + run: | + deno compile --target x86_64-unknown-linux-gnu -o fast-down-x86_64-unknown-linux-gnu --allow-write --allow-net --allow-read --include worker.ts main.ts + deno compile --target aarch64-unknown-linux-gnu -o fast-down-aarch64-unknown-linux-gnu --allow-write --allow-net --allow-read --include worker.ts main.ts + deno compile --target x86_64-pc-windows-msvc -o fast-down-x86_64-pc-windows-msvc.exe --allow-write --allow-net --allow-read --include worker.ts main.ts + deno compile --target x86_64-apple-darwin -o fast-down-x86_64-apple-darwin --allow-write --allow-net --allow-read --include worker.ts main.ts + deno compile --target aarch64-apple-darwin -o fast-down-aarch64-apple-darwin --allow-write --allow-net --allow-read --include worker.ts main.ts - name: Create Release and Upload Release Asset uses: softprops/action-gh-release@v1 with: tag_name: ${{ github.ref }} - name: Fast Down ${{ github.ref }} + name: Fast Down ${{ github.ref_name }} body: 修复了一些已知问题 draft: false prerelease: false files: | - fast-down - fast-down.exe + fast-down-x86_64-unknown-linux-gnu + fast-down-aarch64-unknown-linux-gnu + fast-down-x86_64-pc-windows-msvc.exe + fast-down-x86_64-apple-darwin + fast-down-aarch64-apple-darwin