Skip to content

Commit

Permalink
merge in main
Browse files Browse the repository at this point in the history
  • Loading branch information
LandryNorris committed Aug 15, 2023
2 parents e77402c + ad36ff6 commit 30c1e9c
Show file tree
Hide file tree
Showing 14 changed files with 5,816 additions and 5,099 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}

env:
V: 1

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
mingw: true
linux: true
- os: macos-latest
darwin: true

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Set up MinGW
if: ${{ matrix.mingw }}
uses: egor-tensin/setup-mingw@v2
with:
platform: x64

- name: Install dependencies
run: npm install

- name: Build project
run: npx lerna run build

- name: Make prebuilds
if: ${{ matrix.linux }}
run: npx lerna run makePrebuildsOnLinux

- name: Make prebuilds
if: ${{ matrix.darwin }}
run: npx lerna run makePrebuildsOnDarwin

- name: Create Artifacts
uses: actions/upload-artifact@v2
with:
name: MyArtifacts
path: |
./packages/rhsplib/prebuilds
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
build
build-windows
build-linux*
dist
**/prebuilds

Expand Down
3 changes: 1 addition & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "independent",
"useWorkspaces": true
"version": "independent"
}
Loading

0 comments on commit 30c1e9c

Please sign in to comment.