From 978899780c738e5e4346959754eb51b0527d4602 Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 31 Dec 2023 22:21:35 +0800 Subject: [PATCH] Test GH Actions tweaks --- .github/workflows/compile_project.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile_project.yml b/.github/workflows/compile_project.yml index a7a7074..b7457b1 100644 --- a/.github/workflows/compile_project.yml +++ b/.github/workflows/compile_project.yml @@ -20,12 +20,15 @@ jobs: - dist: ubuntu_x86_64 os: ubuntu-latest arch: x86_64 + bin_ext: - dist: macos_x86_64 os: macos-latest arch: x86_64 + bin_ext: - dist: macos_arm64 os: macos-latest arch: arm64 + bin_ext: steps: - uses: actions/checkout@v4 - name: Clone submodules @@ -35,7 +38,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: ${{ matrix.prog }}-${{ matrix.dist }} - path: ./bin/${{ matrix.prog }} + path: ./bin/${{ matrix.prog }}${{ matrix.bin_ext }} build_visualstudio: name: Compile ${{ matrix.prog }} for ${{ matrix.dist }} runs-on: ${{ matrix.os }} @@ -49,11 +52,13 @@ jobs: platform: x64 configuration: Release build_path: x64\Release + bin_ext: .exe - dist: win_x86 os: windows-latest platform: x86 configuration: Release build_path: Release + bin_ext: .exe steps: - uses: actions/checkout@v4 - name: Add msbuild to PATH @@ -65,5 +70,4 @@ jobs: - uses: actions/upload-artifact@v4 with: name: ${{ matrix.prog }}-${{ matrix.dist }} - path: .\build\visualstudio\${{ matrix.build_path }}\${{ matrix.prog }}.exe - + path: .\build\visualstudio\${{ matrix.build_path }}\${{ matrix.prog }}${{ matrix.bin_ext }}