-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.34 KB
/
test_acceptance.yml
File metadata and controls
51 lines (42 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Acceptance test
on:
workflow_call:
jobs:
test_acceptance:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Get Conan
id: conan
uses: turtlebrowser/get-conan@v1.2
- name: Add Conan remote
run: conan remote add DEPS_REMOTE ${{ secrets.CONAN_REMOTE_URL }}
- name: Detect profile
run: conan profile detect
- name: Add dedicated profile
run: conan config install profiles/windows_msvc -tf profiles
- name: Cache Conan packages
id: cache-conan
uses: actions/cache@v4
env:
cache-name: cache-conan-packages
with:
path: ~/.conan/data
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.ini') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-conan.outputs.cache-hit == 'true' }}
name: List the state of Conan packages
continue-on-error: true
run: conan list "*"
- name: Build Agnes
id: build
uses: bentoudev/zet-cpp-build@main
- name: Create conan package
run: conan create . --user=bentou --channel=stable -pr:b=windows_msvc -pr:h=windows_msvc
- name: Regen test
run: ./test_regen.bat
- name: Build test
run: ./test_build.bat