-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github actions runner image. (#412)
* Add GitHub actions runner image. * Update workflows * Add all jobs to CI --------- Co-authored-by: alon.dotan <[email protected]>
- Loading branch information
1 parent
592447e
commit c644d29
Showing
3 changed files
with
37 additions
and
6 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,10 @@ | ||
FROM ghcr.io/actions/actions-runner:latest | ||
USER root | ||
|
||
RUN apt update && \ | ||
apt install -y \ | ||
build-essential \ | ||
curl | ||
|
||
USER runner | ||
CMD /bin/bash |
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,7 @@ | ||
# Build and push | ||
|
||
```bash | ||
|
||
docker build .github/runners -t actions-runner:latest | ||
|
||
``` |
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
components: rustfmt | ||
|
@@ -34,7 +34,7 @@ jobs: | |
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
components: clippy | ||
|
@@ -45,18 +45,18 @@ jobs: | |
run-tests: | ||
runs-on: avx | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
profile: minimal | ||
toolchain: nightly-2024-01-04 | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo +nightly-2024-01-04 test --features avx512 | ||
- run: cargo +nightly-2024-01-04 test --features avx512 | ||
- run: cargo +nightly-2024-01-04 test --features avx512 --release | ||
|
||
udeps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
name: "Rust Toolchain Setup" | ||
with: | ||
|
@@ -70,3 +70,17 @@ jobs: | |
cargo-udeps-*/cargo-udeps udeps | ||
env: | ||
RUSTUP_TOOLCHAIN: nightly-2024-01-04 | ||
|
||
|
||
all-tests: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- clippy | ||
- format | ||
- run-tests | ||
- udeps | ||
steps: | ||
- name: Decide whether all the needed jobs succeeded or failed | ||
uses: re-actors/[email protected] | ||
with: | ||
jobs: ${{ toJSON(needs) }} |