Skip to content

Commit

Permalink
bold updates to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Hewett committed Aug 29, 2023
1 parent f27e8b7 commit ce7d986
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ jobs:
env:
CMAKE_BUILD_DIR: ${{ github.workspace }}/build
CMAKE_TEST_DIR: ${{ github.workspace }}/build/test
VCPKG_BINARY_SOURCES: files,${{ github.workspace }}/build/cache,rw

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: dependencies (macos)
if: ${{ matrix.os == 'macos-latest' }}
Expand All @@ -46,19 +47,18 @@ jobs:
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"
- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ env.CMAKE_BUILD_DIR }}/vcpkg_installed
key: ${{ runner.os }}-${{ hashFiles( '**/vcpkg.json' ) }}
path: ${{ github.workspace }}/build/cache
key: ${{ runner.os }}

- name: Configure to use clang-tidy and sanitizers
run: |
cmake -B "${{ env.CMAKE_BUILD_DIR }}" -DTESTING=ON -DCLANG_TIDY=ON -DSANITIZERS=ON -DCMAKE_TOOLCHAIN_FILE="${{ matrix.vcpkg-cmake-file}}" .
- name: Build
run: |
cmake --build "${{ env.CMAKE_BUILD_DIR }}"
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --parallel 2
- name: Unit tests
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build_openssl3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ jobs:
env:
CMAKE_BUILD_DIR: ${{ github.workspace }}/build
CMAKE_TEST_DIR: ${{ github.workspace }}/build/test
VCPKG_BINARY_SOURCES: files,${{ github.workspace }}/build/cache,rw

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: dependencies (macos)
if: ${{ matrix.os == 'macos-latest' }}
Expand All @@ -49,11 +50,10 @@ jobs:
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"
- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ env.CMAKE_BUILD_DIR }}/vcpkg_installed
key: ${{ runner.os }}-${{ hashFiles( '**/vcpkg.json' ) }}
path: ${{ github.workspace }}/build/cache
key: ${{ runner.os }}

- name: Configure to use clang-tidy and sanitizers
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ jobs:
env:
CMAKE_BUILD_DIR: ${{ github.workspace }}/build
TOOLCHAIN_FILE: $VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
VCPKG_BINARY_SOURCES: files,${{ github.workspace }}/build/cache,rw

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: dependencies
run: |
Expand All @@ -30,13 +31,12 @@ jobs:
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"
- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ env.CMAKE_BUILD_DIR }}/vcpkg_installed
key: ${{ runner.os }}-${{ hashFiles( '**/vcpkg.json' ) }}
path: ${{ github.workspace }}/build/cache
key: ${{ runner.os }}

- name: build the library
run: |
cmake -B "${{ env.CMAKE_BUILD_DIR }}" -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" .
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target mlspp
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target mlspp --parallel 2
14 changes: 7 additions & 7 deletions .github/workflows/interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ jobs:
env:
CMAKE_BUILD_DIR: ${{ github.workspace }}/build
TOOLCHAIN_FILE: $VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
VCPKG_BINARY_SOURCES: files,${{ github.workspace }}/build/cache,rw

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
${{ env.CMAKE_BUILD_DIR }}/vcpkg_installed
key: ${{ runner.os }}-${{ hashFiles( '**/vcpkg.json' ) }}
path: ${{ github.workspace }}/build/cache
key: ${{ runner.os }}

- name: Build the library
run: |
cmake -B build -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" .
cmake --build build
cmake --build build --parallel 2
- name: Build interop harness
run: |
cd cmd/interop
cmake -B build -DSANITIZERS=ON -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" .
cmake --build build
cmake --build build --parallel 2
- name: Test self-interop
run: |
Expand Down

0 comments on commit ce7d986

Please sign in to comment.