b26c86b51a
The v2 implementation uses Node 12, which is end-of-life on April 30, 2022. See https://nodejs.org/en/about/releases/. Update to v3, which is based on Node 16 whose support lasts until April 30, 2024.
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: mac
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources
|
|
# macOS Catalina 10.15
|
|
runs-on: macos-latest
|
|
name: (${{ matrix.target }}, ${{ matrix.cfg_release_channel }})
|
|
env:
|
|
CFG_RELEASE_CHANNEL: ${{ matrix.cfg_release_channel }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [
|
|
x86_64-apple-darwin,
|
|
]
|
|
cfg_release_channel: [nightly, stable]
|
|
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
|
|
# Run build
|
|
- name: install rustup
|
|
run: |
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
|
|
sh rustup-init.sh -y --default-toolchain none
|
|
rustup target add ${{ matrix.target }}
|
|
|
|
- name: build
|
|
run: |
|
|
rustc -Vv
|
|
cargo -V
|
|
cargo build
|
|
|
|
- name: test
|
|
run: cargo test
|