-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CI to return better results faster (#406)
* Refactor CI to return better results faster * Address review comments from @glhewett * Update the Makefile to match manifest location changes * Attempt to resolve CI YAML errors * Attempt to resolve CI YAML errors * Revert "Attempt to resolve CI YAML errors" This reverts commit db4ab45. * Revert "Attempt to resolve CI YAML errors" This reverts commit c989c15. * Revert "Address review comments from @glhewett" This reverts commit 1770db5. * Remove <iostream> from test/bytes.cpp * Manually expand test target * Remove 'if' lines (will break CI) * Re-add if with single quotes * Rename composite action * Pass more input to the composite action * Fix the filename of the vcpkg manifest * Key on library name rather than manifest hash * Add status line in CMakeLists.txt
- Loading branch information
1 parent
d24adf5
commit 3a84133
Showing
7 changed files
with
158 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Install build prerequisites | ||
|
||
inputs: | ||
os: | ||
description: The operating system on which the test is being run | ||
required: true | ||
crypto: | ||
description: The crypto library being used | ||
required: true | ||
cache-dir: | ||
description: Where to put vcpkg cache | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Capture vcpkg revision for use in cache key | ||
shell: bash | ||
run: | | ||
git -C vcpkg rev-parse HEAD > vcpkg_commit.txt | ||
- name: Restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ inputs.cache-dir }} | ||
key: v01-vcpkg-${{ inputs.os }}-${{ inputs.crypto }}-${{ hashFiles('vcpkg_commit.txt', 'alternatives/*/vcpkg.json') }} | ||
restore-keys: | | ||
v01-vcpkg-${{ inputs.os }} | ||
- name: Install dependencies (macOS) | ||
if: ${{ runner.os == 'macOS' }} | ||
shell: bash | ||
run: | | ||
brew install llvm pkg-config nasm | ||
ln -s "/usr/local/opt/llvm/bin/clang-format" "/usr/local/bin/clang-format" | ||
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy" | ||
- name: Install dependencies (Ubuntu) | ||
if: ${{ runner.os == 'Linux' }} | ||
shell: bash | ||
run: | | ||
sudo apt-get install -y linux-headers-$(uname -r) nasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.