Skip to content

feat!: update toolchain to version 0.16.0 #45

feat!: update toolchain to version 0.16.0

feat!: update toolchain to version 0.16.0 #45

Workflow file for this run

name: Build
on: [push]
env:
TOOLCHAIN_DOCKER_REPOSITORY: ${{ github.repository_owner }}/toolchain
TOOLCHAIN_TAG: 0.16.0
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.CI_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build dependencies
run: make toolchain-exec CONTAINER_COMMAND="/usr/bin/make dep -j$(nproc)"
- name: Build
run: |
make toolchain-exec CONTAINER_COMMAND="/usr/bin/make -j$(nproc)"
make toolchain-exec CONTAINER_COMMAND="/usr/bin/make uarch -j$(nproc)"
- name: Install
run: |
make install
make uarch-install
- name: TAR
run: tar -czf machine-tests-`git describe --tags --exact-match`.tar.gz -C /opt/cartesi/tests .
if: startsWith(github.ref, 'refs/tags/v')
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
prerelease: true
files: machine-tests-*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}