Skip to content

Commit

Permalink
Add github actions runner image. (#412)
Browse files Browse the repository at this point in the history
* Add GitHub actions runner image.

* Update workflows

* Add all jobs to CI

---------

Co-authored-by: alon.dotan <[email protected]>
  • Loading branch information
guyvelleman and alon-dotan-starkware authored Feb 28, 2024
1 parent 592447e commit c644d29
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/runners/Dockerfile
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
7 changes: 7 additions & 0 deletions .github/runners/README.md
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

```
26 changes: 20 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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) }}

0 comments on commit c644d29

Please sign in to comment.