Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Feb 5, 2024
1 parent d33ce9f commit f532376
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Prebuild
on:
workflow_dispatch:
jobs:
prebuild:
strategy:
matrix:
node: [20]
os: [ubuntu-22.04, macos-12, macos-14, windows-2022]
include:
- os: ubuntu-22.04
name: linux-x64
- os: macos-12
name: darwin-x64
- os: macos-14
name: darwin-arm64
- os: windows-2022
name: win32-x64
runs-on: ${{ matrix.os }}
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install -g bare-runtime bare-dev
- run: npm install
- run: bare-dev install
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: prebuilds/*
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
node: [lts/*]
os: [ubuntu-latest]
include:
- os: ubuntu-latest
name: ubuntu
runs-on: ${{ matrix.os }}
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install -g bare-runtime bare-dev
- run: npm install
- run: bare-dev install
- run: npm test
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"CMakeLists.txt",
"prebuilds"
],
"addon": {
"target": "bare-hrtime"
},
"scripts": {
"test": "standard && bare test.js"
},
Expand Down

0 comments on commit f532376

Please sign in to comment.