Skip to content

Commit

Permalink
Fix Github workflow syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Nov 12, 2023
1 parent 5e22b6e commit 64de5a1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 15 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
with:
path: .git/
key: test-build-cache-git-${{ github.run_id }}
restore-keys: test-build-cache-git
restore-keys: |
- test-build-cache-git
- name: Checkout
uses: actions/checkout@v4
- name: Detect changes
Expand Down Expand Up @@ -62,7 +63,8 @@ jobs:
with:
path: .git/
key: test-build-cache-git-${{ github.run_id }}
restore-keys: test-build-cache-git
restore-keys: |
- test-build-cache-git
linux_build:
needs: changes
if: ${{ needs.changes.outputs.any == 'true' }}
Expand All @@ -74,7 +76,8 @@ jobs:
with:
path: .git/
key: test-build-cache-git-${{ github.run_id }}
restore-keys: test-build-cache-git
restore-keys: |
- test-build-cache-git
- name: Checkout
uses: actions/checkout@v4
- name: Install OpenCL
Expand All @@ -98,7 +101,8 @@ jobs:
- doc/_extra/
- doc/development/api/python/
key: ${{ runner.os }}-test-build-cache-tmp-files-${{ github.run_id }}
restore-keys: ${{ runner.os }}-test-build-cache-tmp-files
restore-keys: |
- ${{ runner.os }}-test-build-cache-tmp-files
- name: Test C++ code
if: ${{ needs.changes.outputs.cpp_tests == 'true' }}
run: ./build tests_cpp
Expand Down Expand Up @@ -136,7 +140,8 @@ jobs:
- doc/_extra/
- doc/development/api/python/
key: ${{ runner.os }}-test-build-cache-tmp-files-${{ github.run_id }}
restore-keys: ${{ runner.os }}-test-build-cache-tmp-files
restore-keys: |
- ${{ runner.os }}-test-build-cache-tmp-files
macos_build:
needs: changes
if: ${{ needs.changes.outputs.cpp == 'true' }}
Expand All @@ -148,7 +153,8 @@ jobs:
with:
path: .git/
key: test-build-cache-git-${{ github.run_id }}
restore-keys: test-build-cache-git
restore-keys: |
- test-build-cache-git
- name: Checkout
uses: actions/checkout@v4
- name: Install OpenMP
Expand All @@ -165,7 +171,8 @@ jobs:
- scons/build/
- cpp/build/
key: ${{ runner.os }}-test-build-cache-tmp-files-${{ github.run_id }}
restore-keys: ${{ runner.os }}-test-build-cache-tmp-files
restore-keys: |
- ${{ runner.os }}-test-build-cache-tmp-files
- name: Compile via Clang
run: TEST_SUPPORT=disabled CPLUS_INCLUDE_PATH=/usr/local/opt/opencl-clhpp-headers/include ./build compile
- name: Save build files to cache
Expand All @@ -177,7 +184,8 @@ jobs:
- scons/build/
- cpp/build/
key: ${{ runner.os }}-test-build-cache-tmp-files-${{ github.run_id }}
restore-keys: ${{ runner.os }}-test-build-cache-tmp-files
restore-keys: |
- ${{ runner.os }}-test-build-cache-tmp-files
windows_build:
needs: changes
if: ${{ needs.changes.outputs.cpp == 'true' }}
Expand All @@ -190,7 +198,8 @@ jobs:
enableCrossOsArchive: true
path: .git/
key: test-build-cache-git-${{ github.run_id }}
restore-keys: test-build-cache-git
restore-keys: |
- test-build-cache-git
- name: Checkout
uses: actions/checkout@v4
- name: Prepare MSVC
Expand All @@ -213,7 +222,8 @@ jobs:
- scons/build/
- cpp/build/
key: ${{ runner.os }}-test-build-cache-tmp-files-${{ github.run_id }}
restore-keys: ${{ runner.os }}-test-build-cache-tmp-files
restore-keys: |
- ${{ runner.os }}-test-build-cache-tmp-files
- name: Compile via MSVC
run: |
$env:TEST_SUPPORT = "disabled"
Expand All @@ -229,4 +239,5 @@ jobs:
- scons/build/
- cpp/build/
key: ${{ runner.os }}-test-build-cache-tmp-files-${{ github.run_id }}
restore-keys: ${{ runner.os }}-test-build-cache-tmp-files
restore-keys: |
- ${{ runner.os }}-test-build-cache-tmp-files
12 changes: 8 additions & 4 deletions .github/workflows/test_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
with:
path: .git/
key: test-format-cache-git-${{ github.run_id }}
restore-keys: test-format-cache-git
restore-keys: |
- test-format-cache-git
- name: Checkout
uses: actions/checkout@v4
- name: Detect changes
Expand Down Expand Up @@ -51,7 +52,8 @@ jobs:
- venv/
- scons/build/
key: test-format-cache-tmp-files-${{ github.run_id }}
restore-keys: test-format-cache-tmp-files
restore-keys: |
- test-format-cache-tmp-files
- name: Check C++ code style
if: steps.filter.outputs.cpp == 'true'
run: ./build test_format_cpp
Expand All @@ -66,11 +68,13 @@ jobs:
- venv/
- scons/build/
key: test-format-cache-tmp-files-${{ github.run_id }}
restore-keys: test-format-cache-tmp-files
restore-keys: |
- test-format-cache-tmp-files
- name: Save Git repository to cache
uses: actions/cache/save@v3
if: success() || failure()
with:
path: .git/
key: test-format-cache-git-${{ github.run_id }}
restore-keys: test-format-cache-git
restore-keys: |
- test-format-cache-git

0 comments on commit 64de5a1

Please sign in to comment.