Upload Win32 and x64 artifacts to Github actions (#708)

* Upload Win32 and x64 artifacts to Github actions

Provides an alternative Windows binary download location that expires in 3 months (2 months longer than Appveyor)

* Add Windows check to skip failed Github actions artifact upload for Linux and macOS
master
3DJ 2022-05-30 22:51:05 +00:00 committed by GitHub
parent 7f1d9725b2
commit c6820bf266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 1 deletions

View File

@ -11,7 +11,17 @@ jobs:
matrix:
config:
- {
name: "Visual Studio 64-bit",
name: "Win32",
os: windows-latest,
cmake_opts: "-A Win32 \
-DALSOFT_BUILD_ROUTER=ON \
-DALSOFT_REQUIRE_WINMM=ON \
-DALSOFT_REQUIRE_DSOUND=ON \
-DALSOFT_REQUIRE_WASAPI=ON",
build_type: "Release"
}
- {
name: "Win64",
os: windows-latest,
cmake_opts: "-A x64 \
-DALSOFT_BUILD_ROUTER=ON \
@ -64,3 +74,11 @@ jobs:
shell: bash
run: |
cmake --build build --config ${{matrix.config.build_type}}
- name: Upload Archive
# Upload package as an artifact of this workflow.
uses: actions/upload-artifact@v2
if: ${{ matrix.config.os == 'windows-latest' }}
with:
name: soft_oal-${{matrix.config.name}}
path: ${{github.workspace}}/build/${{matrix.config.build_type}}/soft_oal.dll