mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-04 04:27:34 +00:00
42 lines
955 B
YAML
42 lines
955 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
name: Build xous-core
|
|
|
|
jobs:
|
|
build:
|
|
name: Setup Rust
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
task: ["hosted-ci", "renode-image"]
|
|
steps:
|
|
- name: Install Ubuntu dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y libxkbcommon-dev
|
|
|
|
- name: Install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: "1.59.0"
|
|
default: true
|
|
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v2
|
|
- name: Fetch tags
|
|
run: git fetch --prune --unshallow --tags
|
|
|
|
- uses: Swatinem/rust-cache@v1
|
|
|
|
- name: Install RISC-V toolkit
|
|
run: cargo xtask install-toolkit --force
|
|
|
|
- name: Clean out old target directory (in case of libstd change)
|
|
run: rm -rf target/*
|
|
|
|
- name: Build hosted-ci
|
|
run: cargo xtask ${{ matrix.task }}
|