Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
BentouDev committed Feb 10, 2024
1 parent c1f81a5 commit adf87a6
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy_conan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,21 @@ on:
default: github-actions[bot]@users.noreply.github.com

jobs:
test_acceptance:
uses: ./.github/workflows/test_acceptance.yml
secrets: inherit

bump_version:
if: ${{ github.event.inputs.version_upgrade != 'none' }}
needs: [ test_unit, test_acceptance ]
needs: [ test_acceptance ]
runs-on: ubuntu-latest
outputs:
new_sha: ${{ steps.bump_ver.outputs.new_sha }}
new_version: ${{ steps.bump_ver.outputs.new_version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/test_acceptance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Acceptance test

on:
workflow_call:

jobs:
test_acceptance:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip

- 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 Agnes
id: build
uses: bentoudev/zet-cpp-build@main

- name: Regen test
run: ./test_regen.bat
- name: Build test
run: ./test_build.bat

0 comments on commit adf87a6

Please sign in to comment.