Skip to content

Commit

Permalink
Update Rust to version 1.84.0
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusmor committed Jan 14, 2025
1 parent 9fc6b43 commit 5c52278
Show file tree
Hide file tree
Showing 29 changed files with 720 additions and 426 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Build

on:
workflow_call:
secrets:
TOKEN:
required: true

workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: macos-14
triple: aarch64-apple-darwin
# - os: macos-13
# triple: x86_64-apple-darwin
- os: ubuntu-20.04
triple: x86_64-unknown-linux-gnu
runs-on: self-hosted
# - os: ubuntu-22.04
# triple: aarch64-unknown-linux-gnu
runs-on: ${{ matrix.runs-on || matrix.os }}
steps:

- name: Install riscv-tools
if: matrix.os == 'macos-14' || matrix.os == 'macos-13'
run: |
brew tap riscv-software-src/riscv
brew install riscv-tools
# - name: Install gcc-riscv64-unknown-elf
# if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
# run: |
# sudo apt-get update
# sudo apt-get -y install gcc-riscv64-unknown-elf

- name: Install rust toolchain
id: rustc-toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true

- uses: lukka/[email protected]

- name: Show rust version
run: |
cargo version
rustup toolchain list
- name: Check out 0xPolygonHermez/zisk
uses: actions/checkout@v3
with:
repository: 0xPolygonHermez/zisk
token: ${{ secrets.GITHUB_TOKEN }}
ref: develop
path: zisk

- name: Check out 0xPolygonHermez/rust
uses: actions/checkout@v3
with:
submodules: "recursive"
path: rust
fetch-depth: 0

- name: Build
run: GITHUB_ACTIONS=false ZISK_BUILD_DIR=$GITHUB_WORKSPACE cargo run --bin cargo-zisk -- sdk build-toolchain
working-directory: zisk

- name: Archive build output
uses: actions/upload-artifact@v3
with:
name: rust-toolchain-${{ matrix.triple }}
path: |
zisk/rust-toolchain-${{ matrix.triple }}.tar.gz
263 changes: 0 additions & 263 deletions .github/workflows/ci.yml

This file was deleted.

Loading

0 comments on commit 5c52278

Please sign in to comment.