-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify benchmark actions and workflows to allow custom compiler
- Remove redundant `nix-shell` argument from `bench` composite action - Use relative path for `tests` script in `bench` action to allow running it from non-nix shell. - Add `setup-ubuntu` composite action for installation of Ubuntu dependencies, if nix is not used. - Modify bench_ec2_reusable and bench_ec2_any to allow specification of custom compiler, instead of CC in nix shell. Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
- Loading branch information
1 parent
59a0b06
commit 06fd5bb
Showing
6 changed files
with
86 additions
and
22 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
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
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,35 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Setup ubuntu | ||
description: Setup ubuntu | ||
|
||
inputs: | ||
packages: | ||
description: Space-separated list of additional packages to install | ||
required: false | ||
default: '' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Update package repository | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
- name: Install base packages | ||
shell: bash | ||
run: | | ||
sudo apt-get install python3-venv python3-pip make -y | ||
- name: Install additional packages | ||
if: ${{ inputs.packages != ''}} | ||
shell: bash | ||
run: | | ||
sudo apt-get install ${{ inputs.packages }} -y | ||
- name: Setup Python venv | ||
shell: bash | ||
run: | | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
python3 -m pip install -r requirements.txt | ||
deactivate | ||
echo "$(pwd)/venv/bin/" >> "$GITHUB_PATH" |
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
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
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