Update build-cmake-conan.yml #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: re3 premake amd64 | |
on: | |
pull_request: | |
push: | |
release: | |
types: published | |
env: | |
GLFW_VER: "3.4" | |
GLFW_BASE: "glfw-3.4.bin.WIN64" | |
GLFW_FILE: "glfw-3.4.bin.WIN64.zip" | |
GLFW_URL: "https://github.com/glfw/glfw/releases/download/3.4/glfw-3.4.bin.WIN64.zip" | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
platform: [win-amd64-librw_d3d9-oal, win-amd64-librw_gl3_glfw-oal] | |
buildtype: [Debug, Release] | |
steps: | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- if: ${{ matrix.platform }} == "win-amd64-librw_gl3_glfw-mss" | |
name: Download glfw | |
uses: carlosperate/download-file-action@v2 | |
with: | |
file-url: ${{env.GLFW_URL}} | |
- if: ${{ matrix.platform }} == "win-amd64-librw_gl3_glfw-mss" | |
name: Unpack archives | |
run: | | |
7z x ${{env.GLFW_FILE}} | |
- name: Configure build | |
run: | | |
./premake5 vs2019 --with-librw --no-full-paths --glfwdir64=${{env.GLFW_BASE}} | |
- name: Build | |
run: | | |
msbuild -m build/re3.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}} | |
# - name: Pack artifacts | |
# run: | | |
# 7z a re3_${{matrix.buildtype}}_${{matrix.platform}}.zip ./bin/${{matrix.platform}}/${{matrix.buildtype}}/* | |
- name: Move binaries to gamefiles | |
run: | | |
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/re3.exe ./gamefiles/ | |
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/re3.pdb ./gamefiles/ | |
- name: Move dynamic dependencies to gamefiles | |
run: | | |
mv ./vendor/mpg123/dist/Win64/libmpg123-0.dll ./gamefiles/ | |
mv ./vendor/openal-soft/dist/Win64/OpenAL32.dll ./gamefiles/ | |
- name: Upload artifact to actions | |
uses: actions/upload-artifact@v4 | |
with: | |
name: re3_${{matrix.buildtype}}_${{matrix.platform}} | |
path: ./gamefiles/* | |
# - name: Upload artifact to Bintray | |
# uses: hpcsc/upload-bintray-docker-action@v1.1 | |
# with: | |
# repository: re3 | |
# package: ${{matrix.buildtype}}_${{matrix.platform}} | |
# version: 1.0-$(echo ${GITHUB_SHA} | |
# sourcePath: ./bin/${{matrix.platform}}/${{matrix.buildtype}} | |
# username: gtamodding | |
# apiKey: ${{secrets.BINTRAY_API_KEY}} |