diff options
| author | ruki <[email protected]> | 2024-09-10 00:50:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-09-10 00:50:53 +0800 |
| commit | 76ab87b7b73464b7e062d97b5eb2d34e934394a5 (patch) | |
| tree | 86cc578303873fe548d5476361e1a2aade3a868f | |
| parent | 433db1562c297563806677f15e1d92c8acab81d1 (diff) | |
improve ci
| -rw-r--r-- | .github/workflows/windows.yml | 18 | ||||
| -rw-r--r-- | .github/workflows/windows_luajit.yml | 15 |
2 files changed, 25 insertions, 8 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b6f920a16..5eee883c1 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -83,15 +83,23 @@ jobs: xmake lua -v -D tests/run.lua # upload artifacts - - uses: actions/upload-artifact@v4 + - name: Upload artifacts (exe) + if: matrix.os == 'windows-2022' + uses: actions/upload-artifact@v4 with: name: xmake-latest.${{env.RELEASE_NAME}}.exe path: artifacts/${{env.RELEASE_NAME}}/xmake.exe - - uses: actions/upload-artifact@v4 + + - name: Upload artifacts (zip) + if: matrix.os == 'windows-2022' + uses: actions/upload-artifact@v4 with: name: xmake-latest.${{ env.RELEASE_NAME }}.zip path: artifacts/${{env.RELEASE_NAME}}/xmake.zip - - uses: actions/upload-artifact@v4 + + - name: Upload artifacts (sha256) + if: matrix.os == 'windows-2022' + uses: actions/upload-artifact@v4 with: name: xmake-latest.${{ env.RELEASE_NAME }}.sha256 path: artifacts/${{env.RELEASE_NAME}}/shafile @@ -105,7 +113,7 @@ jobs: uses: WyriHaximus/github-action-get-previous-tag@master - name: Upload artifacts to lastest release - if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' + if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') && matrix.os == 'windows-2022' uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} @@ -115,7 +123,7 @@ jobs: overwrite: true - name: Upload artifacts to lastest release - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' && matrix.os == 'windows-2022' uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/windows_luajit.yml b/.github/workflows/windows_luajit.yml index 7da708a56..228f8003f 100644 --- a/.github/workflows/windows_luajit.yml +++ b/.github/workflows/windows_luajit.yml @@ -71,16 +71,25 @@ jobs: xmake lua -v -D tests/run.lua # upload artifacts - - uses: actions/upload-artifact@v4 + - name: Upload artifacts (exe) + if: matrix.os == 'windows-2022' + uses: actions/upload-artifact@v4 with: name: xmake-latest.${{env.RELEASE_NAME}}.exe path: artifacts/${{env.RELEASE_NAME}}/xmake.exe - - uses: actions/upload-artifact@v4 + + - name: Upload artifacts (zip) + if: matrix.os == 'windows-2022' + uses: actions/upload-artifact@v4 with: name: xmake-latest.${{ env.RELEASE_NAME }}.zip path: artifacts/${{env.RELEASE_NAME}}/xmake.zip - - uses: actions/upload-artifact@v4 + + - name: Upload artifacts (sha256) + if: matrix.os == 'windows-2022' + uses: actions/upload-artifact@v4 with: name: xmake-latest.${{ env.RELEASE_NAME }}.sha256 path: artifacts/${{env.RELEASE_NAME}}/shafile + |
