readme #31
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: CMake | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: {} | |
jobs: | |
build: | |
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | |
# You can convert this to a matrix build if you need cross-platform coverage. | |
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: robinraju/release-downloader@v1.8 | |
with: | |
repository: "upx/upx" | |
latest: true | |
fileName: "*-win64.zip" | |
tarBall: false | |
zipBall: false | |
extract: true | |
- name: Move UPX | |
run: mv upx-*-win64 upx | |
- name: Configure CMake | |
# Configure CMake in a 'build' subdirectory. | |
# NOTE: windows-2019 is the last one that will support v141_xp | |
run: cmake -B ${{github.workspace}}/build -T v141_xp -A Win32 -DUPX_PATH:STRING="${{github.workspace}}/upx/upx.exe" | |
- name: Build | |
# Build your program with the given configuration | |
run: cmake --build ${{github.workspace}}/build --config Release | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gm82net | |
path: gm82net.gex |