Skip to content

Commit

Permalink
Update cmake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tishion authored Feb 19, 2021
1 parent 5142bf6 commit 2cbc031
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,34 @@ jobs:
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{github.workspace}}/build

- name: Configure CMake
- name: Configure CMake for Win32
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{github.workspace}}/build
working-directory: ${{github.workspace}}/build.win32
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DBUILD_SHELLCODE_GEN=TRUE -DBUILD_MMLOADER_DEMO=TRUE

- name: Build
working-directory: ${{github.workspace}}/build
- name: Build for Win32
working-directory: ${{github.workspace}}/build.win32
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build .

- name: Configure CMake for x64
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{github.workspace}}/build.x64
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DBUILD_SHELLCODE_GEN=TRUE -DBUILD_MMLOADER_DEMO=TRUE

- name: Build for Win64
working-directory: ${{github.workspace}}/build.x64
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build .
Expand Down

0 comments on commit 2cbc031

Please sign in to comment.