diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0c726a..5abcb59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,7 @@ jobs: suffix: 64-alpine steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 @@ -143,7 +143,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: name: ${{ matrix.id }} path: dist/wibo @@ -169,7 +169,7 @@ jobs: brew install mingw-w64 - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 @@ -182,7 +182,7 @@ jobs: run: ctest --preset ${{ matrix.preset }} - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: name: ${{ matrix.id }} path: build/${{ matrix.build_dir }}/wibo @@ -190,34 +190,29 @@ jobs: release: name: Publish Release if: startsWith(github.ref, 'refs/tags/') - needs: build + needs: [build, build-macos] runs-on: ubuntu-latest permissions: contents: write steps: - - name: Download static debug - uses: actions/download-artifact@v4 + - name: Download artifacts + uses: actions/download-artifact@v6 with: - name: static-debug - path: artifacts/static-debug + path: artifacts - - name: Download static release - uses: actions/download-artifact@v4 - with: - name: static-release - path: artifacts/static-release - - - name: Prepare assets + - name: Prepare artifacts run: | - mkdir -p artifacts/out - cp artifacts/static-debug/wibo artifacts/out/wibo_debug - cp artifacts/static-release/wibo artifacts/out/wibo + mkdir artifacts/out + mv artifacts/static-release/wibo artifacts/out/wibo-i686 + mv artifacts/static-debug/wibo artifacts/out/wibo-i686-debug + mv artifacts/static-release64/wibo artifacts/out/wibo-x86_64 + mv artifacts/static-debug64/wibo artifacts/out/wibo-x86_64-debug + mv artifacts/macos-release/wibo artifacts/out/wibo-macos + mv artifacts/macos-debug/wibo artifacts/out/wibo-macos-debug - name: Publish release uses: softprops/action-gh-release@v2 with: - files: | - artifacts/out/wibo - artifacts/out/wibo_debug + files: artifacts/out/* draft: true generate_release_notes: true