napi-rs/.github/workflows/linux-musl.yaml

44 lines
1,004 B
YAML
Raw Normal View History

2020-10-14 17:15:20 +09:00
name: Linux musl
env:
DEBUG: 'napi:*'
2023-03-12 19:31:13 +09:00
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2020-08-17 23:36:09 +09:00
on:
push:
2020-12-03 17:30:14 +09:00
branches:
- main
2020-08-17 23:36:09 +09:00
pull_request:
jobs:
build:
2022-12-09 18:29:03 +09:00
name: stable - x86_64-unknown-linux-musl - node@18
runs-on: ubuntu-latest
steps:
2022-04-01 15:29:51 +09:00
- uses: actions/checkout@v3
2021-11-19 15:58:21 +09:00
- name: Setup node
uses: actions/setup-node@v3
2020-11-26 15:30:19 +09:00
with:
2022-12-09 18:29:03 +09:00
node-version: 18
2021-11-19 15:58:21 +09:00
cache: 'yarn'
2020-11-26 15:30:19 +09:00
2021-11-19 15:58:21 +09:00
- name: 'Install dependencies'
run: |
yarn config set --json supportedArchitectures.libc '["current", "musl"]'
yarn install --immutable --mode=skip-build
2020-07-29 23:04:47 +09:00
2021-11-19 15:58:21 +09:00
- name: Setup and run tests
uses: addnab/docker-run-action@v3
with:
2022-09-09 19:54:23 +09:00
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
2021-11-19 15:58:21 +09:00
options: -v ${{ github.workspace }}:/napi-rs -w /napi-rs
run: |
cargo check -vvv
yarn build:test -- --target x86_64-unknown-linux-musl
2021-11-19 15:58:21 +09:00
yarn test