修剪 resources.pri #2268
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: build | |
on: | |
push: | |
paths: [ '.github/workflows/build.yml', 'Magpie.sln', '*.props', 'publish.py', 'src/**' ] | |
pull_request: | |
paths: [ '.github/workflows/build.yml', 'Magpie.sln', '*.props', 'publish.py', 'src/**' ] | |
# env: | |
# Configuration type to build. | |
# You can convert this to a build matrix if you need coverage of multiple configuration types. | |
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
# BUILD_CONFIGURATION: Release | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Load Conan cache | |
uses: actions/cache@v3 | |
with: | |
path: ./.conan/data | |
key: ${{ runner.os }}-conan-${{ hashFiles('src/**/conanfile.txt') }} | |
- name: Restore NuGet packages | |
run: nuget restore | |
- name: Setup Conan | |
run: pip install conan<2.0 | |
- name: Build | |
run: python "publish.py" | |
- name: Save hash | |
id: hash | |
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $env:GITHUB_OUTPUT | |
- name: Store build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Magpie_dev_${{ steps.hash.outputs.sha_short }} | |
path: ./publish |