Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
vfusco committed Jan 23, 2024
1 parent 5ad3492 commit 4d098b7
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
run: echo MACHINE_EMULATOR_VERSION=`make version` >> $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -117,13 +117,13 @@ jobs:
run: echo MACHINE_EMULATOR_VERSION=`make version` >> $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -170,20 +170,21 @@ jobs:
token: ${{ secrets.DEPOT_TOKEN }}

- name: Build machine-emulator "tests" docker image
uses: depot/build-push-action@v1
# uses: depot/build-push-action@v1
uses: docker/build-push-action@v5
with:
file: tests/Dockerfile
context: .
platforms: linux/amd64
tags: ${{ github.repository_owner }}/machine-emulator:tests
push: false
load: true
cache-from: type=gha,scope=debian
cache-to: type=gha,mode=max,scope=debian
# cache-from: type=gha,scope=debian
# cache-to: type=gha,mode=max,scope=debian
build-args: |
MACHINE_EMULATOR_VERSION=${{ env.MACHINE_EMULATOR_VERSION }}
project: ${{ vars.DEPOT_PROJECT }}
token: ${{ secrets.DEPOT_TOKEN }}
# project: ${{ vars.DEPOT_PROJECT }}
# token: ${{ secrets.DEPOT_TOKEN }}


- name: Simple boot inside the docker image
Expand Down Expand Up @@ -227,7 +228,7 @@ jobs:
- name: Run test suite with Microarchitecture
run: |
docker run --rm -t ${{ github.repository_owner }}/machine-emulator:tests cartesi-machine-tests--jobs=$(nproc) run_uarch
docker run --rm -t ${{ github.repository_owner }}/machine-emulator:tests cartesi-machine-tests --jobs=$(nproc) run_uarch
- name: Run test suite with microarchitecture and host based interpreters comparing machine hashes at every step
run: |
Expand Down Expand Up @@ -263,13 +264,13 @@ jobs:
run: echo MACHINE_EMULATOR_VERSION=`make version` >> $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -394,13 +395,13 @@ jobs:
run: echo MACHINE_EMULATOR_VERSION=`make version` >> $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -458,13 +459,13 @@ jobs:
run: echo MACHINE_EMULATOR_VERSION=`make version` >> $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -554,7 +555,7 @@ jobs:
submodules: recursive

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -563,7 +564,7 @@ jobs:
run: echo MACHINE_EMULATOR_VERSION=`make version` >> $GITHUB_ENV

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -645,13 +646,13 @@ jobs:
run: echo MACHINE_EMULATOR_VERSION=`make version` >> $GITHUB_ENV

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down

0 comments on commit 4d098b7

Please sign in to comment.