Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Apr 16, 2024
1 parent 8447aae commit 0d3d443
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Prebuild
on:
workflow_dispatch:
jobs:
prebuild:
strategy:
matrix:
include:
- os: ubuntu-22.04
platform: linux
arch: x64
- os: macos-12
platform: darwin
arch: x64
- os: macos-14
platform: darwin
arch: arm64
- os: windows-2022
platform: win32
arch: x64
runs-on: ${{ matrix.os }}
name: ${{ matrix.platform }}-${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm install -g bare-runtime bare-dev
- run: npm install
- run: bare-dev install --platform ${{ matrix.platform }} --arch ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}-${{ matrix.arch }}
path: prebuilds/*
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
include:
- os: ubuntu-latest
platform: linux
arch: x64
- os: macos-latest
platform: darwin
arch: x64
- os: windows-latest
platform: win32
arch: x64
runs-on: ${{ matrix.os }}
name: ${{ matrix.platform }}-${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm install -g bare-runtime bare-dev
- run: npm install
- run: bare-dev install --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} --debug
- run: npm test

0 comments on commit 0d3d443

Please sign in to comment.