Skip to content

Commit

Permalink
Make CI use test_acceptance workflow. Create package before running t…
Browse files Browse the repository at this point in the history
…est.
  • Loading branch information
BentouDev committed Feb 11, 2024
1 parent c13b48f commit ca2b9e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 39 deletions.
42 changes: 3 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,6 @@ on:
branches: [ main, master ]

jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3

- name: Get Conan
id: conan
uses: turtlebrowser/[email protected]
- name: Add Conan remote
run: conan remote add DEPS_REMOTE ${{ secrets.CONAN_REMOTE_URL }}
- name: Detect profile
run: conan profile detect

- name: Cache Conan packages
id: cache-conan
uses: actions/cache@v3
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
id: build
uses: bentoudev/zet-cpp-build@main

- name: Regen test
run: ./test_regen.bat
- name: Build test
run: ./test_build.bat
test_acceptance:
uses: ./.github/workflows/test_acceptance.yml
secrets: inherit
3 changes: 3 additions & 0 deletions .github/workflows/test_acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
id: build
uses: bentoudev/zet-cpp-build@main

- name: Create conan package
run: conan create . --user=bentou --channel=stable

- name: Regen test
run: ./test_regen.bat
- name: Build test
Expand Down

0 comments on commit ca2b9e4

Please sign in to comment.