Define a MSRV, use that toolchain by default. #10
Workflow file for this run
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
# This workflow verifies libtock-rs is usable on Mac OS. | |
name: ci-mac-os | |
# We run this workflow during pull request review, but not as a required status | |
# for GitHub actions merge-queue merges. We can change this if the workflow is | |
# reasonably quick and reliable. | |
on: pull_request | |
jobs: | |
ci-mac-os: | |
runs-on: macos-latest | |
steps: | |
# Clones a single commit from the libtock-rs repository. The commit cloned | |
# is a merge commit between the PR's target branch and the PR's source. | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Build and Test | |
run: | | |
cd "${GITHUB_WORKSPACE}" | |
LIBTOCK_PLATFORM=nrf52 cargo build -p libtock \ | |
--target=thumbv7em-none-eabi | |
LIBTOCK_PLATFORM=hifive1 cargo build -p libtock \ | |
--target=riscv32imac-unknown-none-elf |