Skip to content

add m1 as platform #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 40 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request:
branches: [ master ]

concurrency:
group: ${{ github.head_ref || 'ci_staging' }}
cancel-in-progress: true

jobs:
rustfmt:
name: Rustfmt (${{ matrix.os }})
Expand Down Expand Up @@ -43,25 +47,56 @@ jobs:
- name: check clippy
run: make check-clippy RUSTV=${{ matrix.rust }}

buid_m1:
name: Build examples for ${{ matrix.rust-target }} on (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['16' ]
include:
- os: macos-11
rust-target: aarch64-apple-darwin
steps:
- uses: actions/checkout@v2
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.rust-target }}
override: true
- uses: Swatinem/rust-cache@v1
with:
key: ${{ matrix.os }}-${{ matrix.rust-target }}
- name: Install nj-cli build
run: cargo install nj-cli
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build examples
run: make build-examples


test:
name: Smoke test (${{ matrix.os }}, ${{ matrix.node }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable]
node: [ '12', '14' ]
node: [ '12', '14','16' ]
env:
TARGET: ${{ matrix.rust-target }}
steps:
- uses: actions/checkout@v2
- name: Cancel Workflow Action
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: Swatinem/rust-cache@v1
with:
key: ${{ matrix.os }}-${{ matrix.rust-target }}
- name: Install nj-cli build
run: cargo install nj-cli
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
Loading