Update ci.yaml to v3 #275
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: Build | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: amd64 | |
- name: Configure CMake | |
run: cmake -G "Ninja Multi-Config" -B build -S ${{ github.workspace }} | |
- name: Build | |
run: cmake --build build --target stfc-community-patch -j --config Release | |
- name: Package | |
run: | | |
mv build/Release/stfc-community-patch.dll version.dll | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: stfc-community-patch | |
path: version.dll |