fix(editor): add editor to the build system #502
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: Windows | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
env: | |
BUILD_TYPE: MinSizeRel | |
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules | |
jobs: | |
windows-native: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: actions/cache@v2 | |
with: | |
path: "**/cpm_modules" | |
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | |
- name: Configure CMake | |
shell: cmd | |
run: cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=MinSizeRel -DENABLE_TEST_COVERAGE=OFF | |
- name: Build | |
shell: cmd | |
run: cmake --build build --config MinSizeRel --parallel | |
- name: Release | |
uses: fnkr/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GHR_COMPRESS: zip | |
GHR_PATH: build/ | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |