Workflows stopped running since we were on old MacOS versions. Using latest should fix this longer-term.
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
---
|
|
name: OpenSK build
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
build_ctap2:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: "true"
|
|
- name: Install Rust toolchain
|
|
run: rustup show
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install Python dependencies
|
|
run: python -m pip install --upgrade pip setuptools wheel
|
|
- name: Set up OpenSK
|
|
run: ./setup.sh
|
|
|
|
- name: Building sha256sum tool
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
args: --manifest-path third_party/tock/tools/sha256sum/Cargo.toml
|
|
|
|
- name: Building OpenSK
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
args: --release --target=thumbv7em-none-eabi --features with_ctap1,vendor_hid
|
|
- name: Compute SHA-256 sum
|
|
run: ./third_party/tock/tools/sha256sum/target/debug/sha256sum target/thumbv7em-none-eabi/release/ctap2
|