add Risc Oficial Tests Check gha #6
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
name: Risc Oficial Tests Check | |
on: | |
push: | |
branches: [develop] | |
paths: | |
- 'emulator/**' | |
- 'riscv/**' | |
pull_request: | |
branches: | |
- '**' | |
paths: | |
- 'emulator/**' | |
- 'riscv/**' | |
jobs: | |
docker-ziskof-check: | |
name: Docker Risc Oficial Tests Check | |
runs-on: self-hosted | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup CI | |
uses: ./.github/actions/setup | |
- name: Build project | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
toolchain: nightly-2024-07-21 | |
args: --release --all-features | |
env: | |
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native | |
RUST_BACKTRACE: 1 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Run Docker container | |
run: | | |
docker run --rm -v ./target/release/ziskemu:/program hermeznetwork/ziskof:latest |