Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Feb 2, 2024
1 parent 45fd1b5 commit ce5d0ac
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 34 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/ci.yml

This file was deleted.

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
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
"lib",
"prebuilds"
],
"addon": {
"target": "bare_os"
},
"scripts": {
"test": "standard && bare test.js"
},
"repository": {
"type": "git",
"url": "https://github.com/holepunchto/bare-os.git"
"url": "git+https://github.com/holepunchto/bare-os.git"
},
"author": "Holepunch",
"license": "Apache-2.0",
Expand All @@ -27,8 +30,5 @@
"devDependencies": {
"brittle": "^3.1.1",
"standard": "^17.0.0"
},
"addon": {
"target": "bare_os"
}
}

0 comments on commit ce5d0ac

Please sign in to comment.