Test GH Actions tweaks

This commit is contained in:
Jack 2023-12-31 22:21:35 +08:00
parent 4922717ad0
commit 978899780c

View file

@ -20,12 +20,15 @@ jobs:
- dist: ubuntu_x86_64 - dist: ubuntu_x86_64
os: ubuntu-latest os: ubuntu-latest
arch: x86_64 arch: x86_64
bin_ext:
- dist: macos_x86_64 - dist: macos_x86_64
os: macos-latest os: macos-latest
arch: x86_64 arch: x86_64
bin_ext:
- dist: macos_arm64 - dist: macos_arm64
os: macos-latest os: macos-latest
arch: arm64 arch: arm64
bin_ext:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Clone submodules - name: Clone submodules
@ -35,7 +38,7 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.prog }}-${{ matrix.dist }} name: ${{ matrix.prog }}-${{ matrix.dist }}
path: ./bin/${{ matrix.prog }} path: ./bin/${{ matrix.prog }}${{ matrix.bin_ext }}
build_visualstudio: build_visualstudio:
name: Compile ${{ matrix.prog }} for ${{ matrix.dist }} name: Compile ${{ matrix.prog }} for ${{ matrix.dist }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -49,11 +52,13 @@ jobs:
platform: x64 platform: x64
configuration: Release configuration: Release
build_path: x64\Release build_path: x64\Release
bin_ext: .exe
- dist: win_x86 - dist: win_x86
os: windows-latest os: windows-latest
platform: x86 platform: x86
configuration: Release configuration: Release
build_path: Release build_path: Release
bin_ext: .exe
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Add msbuild to PATH - name: Add msbuild to PATH
@ -65,5 +70,4 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.prog }}-${{ matrix.dist }} 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 }}