-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): refactoring benchmark workflow
Adds actionlint configuration file. Also install runner as a ubuntu user instead of root.
- Loading branch information
Showing
5 changed files
with
49 additions
and
7 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,4 @@ | ||
self-hosted-runner: | ||
# Labels of self-hosted runner in array of strings. | ||
labels: | ||
- m1mac |
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,27 @@ | ||
# Lint and check CI | ||
name: CI Lint and Checks | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
ACTIONLINT_VERSION: 1.6.27 | ||
|
||
jobs: | ||
lint-check: | ||
name: Lint and checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout tfhe-rs | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
|
||
- name: Get actionlint | ||
run: | | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) ${{ env.ACTIONLINT_VERSION }} | ||
echo "f2ee6d561ce00fa93aab62a7791c1a0396ec7e8876b2a8f2057475816c550782 actionlint" > checksum | ||
sha256sum -c checksum | ||
ln -s "$(pwd)/actionlint" /usr/local/bin/ | ||
- name: Lint workflows | ||
run: | | ||
make lint_workflow |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
region = "eu-west-1" | ||
image_id = "ami-0f96f17e9f652c6ab" | ||
instance_type = "hpc7a.96xlarge" | ||
user = "ubuntu" |