WIP: Move to cmake, add github action #8
Workflow file for this run
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: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download hadesmem release | |
run: | | |
Invoke-WebRequest https://github.com/namreeb/hadesmem/releases/download/v1.7.0/hadesmem-v142-Release-Win32.zip -OutFile hadesmem.zip | |
Expand-Archive -Path hadesmem.zip -DestinationPath . | |
- name: Build Boost | |
run: | | |
Invoke-WebRequest https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.zip -OutFile boost.zip | |
Expand-Archive -Path boost.zip -DestinationPath . | |
cd boost_1_78_0 | |
.\bootstrap | |
.\b2 --with-filesystem --with-program_options link=static threading=multi runtime-link=shared architecture=x86 address-model=32 stage | |
dir | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DBOOST_ROOT=boost_1_78_0 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/artifact | |
- name: Build | |
run: | | |
cmake --build build32 ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
cmake --install ${{github.workspace}}/build | |
- name: Publish artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: dumpwow | |
path: ${{ github.workspace }}/artifact/**/* | |