Skip to content

Commit

Permalink
Update package building
Browse files Browse the repository at this point in the history
  • Loading branch information
richrace committed Jun 23, 2024
1 parent 9b14f5e commit 07ef032
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 8 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ jobs:
- name: build
run: npm run make

build:
runs-on: ${{ matrix.os }}
build-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v4
Expand All @@ -49,3 +47,24 @@ jobs:
run: npm ci
- name: build
run: npm run make

build-ubuntu:
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libusb-1.0-0-dev
version: 1.0

- name: install dependencies
run: npm ci
- name: build
run: npm run make
29 changes: 25 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish

release:
runs-on: ${{ matrix.os }}
release-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v4
Expand All @@ -54,3 +52,26 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish

release-ubuntu:
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libusb-1.0-0-dev
version: 1.0

- name: install dependencies
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish

0 comments on commit 07ef032

Please sign in to comment.