clarify some comments and also disable LED hack after initial trigger… #653
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: vpinmame | |
on: | |
push: | |
pull_request: | |
env: | |
VERSION_START_SHA: e87be0e3cfa66411976ca04a72dd29e36c483966 | |
# UPX_ARTIFACT: 345209471 | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
version: | |
name: Version | |
runs-on: ubuntu-latest | |
outputs: | |
tag: ${{ steps.version.outputs.tag }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- id: version | |
run: | | |
VERSION=$(grep -Eo "[0-9\.]+" src/version.c | head -1) | |
REVISION=$(git rev-list ${{ env.VERSION_START_SHA }}..HEAD --count) | |
SHA7="${GITHUB_SHA::7}" | |
TAG="${VERSION}-${REVISION}-${SHA7}" | |
echo "tag=${TAG}" >> $GITHUB_OUTPUT | |
build: | |
name: Build VPinMAME${{ matrix.artifact-suffix }}-${{ matrix.platform }} | |
runs-on: windows-2019 | |
needs: [ version ] | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- platform: win-x64 | |
platform-name: x64 | |
vpinmame: VPinMAME64.dll | |
setup: Setup64.exe | |
bass: x64/Bass64.dll | |
- platform: win-x64 | |
platform-name: x64 | |
vpinmame: VPinMAME64.dll | |
setup: Setup64.exe | |
bass: x64/Bass64.dll | |
artifact-suffix: -sc | |
extra-flags: -D CMAKE_CXX_FLAGS=//DSAM_INCLUDE_COLORED | |
- platform: win-x86 | |
platform-name: Win32 | |
vpinmame: VPinMAME.dll | |
setup: Setup.exe | |
bass: Bass.dll | |
- platform: win-x86 | |
platform-name: Win32 | |
vpinmame: VPinMAME.dll | |
setup: Setup.exe | |
bass: Bass.dll | |
artifact-suffix: -sc | |
extra-flags: -D CMAKE_CXX_FLAGS=//DSAM_INCLUDE_COLORED | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ilammy/setup-nasm@v1 | |
# - run: | | |
# curl -sL -H "Authorization: Token ${{ secrets.GH_PAT }}" https://api.github.com/repos/upx/upx/actions/artifacts/${{ env.UPX_ARTIFACT }}/zip -o upx.zip | |
# 7z x upx.zip -oupx | |
# rm upx.zip | |
# - run: | | |
# curl -L https://github.com/upx/upx/releases/download/v4.1.0/upx-4.1.0-win64.zip -o upx.zip | |
# 7z e upx.zip -oupx | |
# rm upx.zip | |
- name: Build VPinMAME${{ matrix.artifact-suffix }}-${{ matrix.platform }} | |
run: | | |
cp cmake/vpinmame/CMakeLists_${{ matrix.platform }}.txt CMakeLists.txt | |
cmake ${{ matrix.extra-flags }} -T v141_xp -G "Visual Studio 16 2019" -A ${{ matrix.platform-name }} -B build/vpinmame | |
cmake --build build/vpinmame --config Release | |
# ./upx/upx.exe --best --lzma build/vpinmame/Release/${{ matrix.vpinmame }} | |
cp cmake/instvpm/CMakeLists_${{ matrix.platform }}.txt CMakeLists.txt | |
cmake -T v141_xp -G "Visual Studio 16 2019" -A ${{ matrix.platform-name }} -B build/instvpm | |
cmake --build build/instvpm --config Release | |
- run: | | |
mkdir tmp | |
cp build/vpinmame/Release/${{ matrix.vpinmame }} tmp | |
cp build/instvpm/Release/${{ matrix.setup }} tmp | |
cp ext/bass/${{ matrix.bass }} tmp | |
cp release/gamelist.txt tmp | |
cp release/license.txt tmp | |
cp release/pinmame.txt tmp | |
cp "release/visual pinmame.txt" tmp | |
cp release/VPMAlias.txt tmp | |
cp release/whatsnew.txt tmp | |
cp release/whatsnewVPM.txt tmp | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: VPinMAME${{ matrix.artifact-suffix }}-${{ needs.version.outputs.tag }}-${{ matrix.platform }} | |
path: tmp |