Skip to content

修剪 resources.pri #2298

修剪 resources.pri

修剪 resources.pri #2298

Workflow file for this run

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