Skip to content

Add comment

Add comment #106

Workflow file for this run

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: Install cross-compilation tools
if: ${{ matrix.linux }}
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: aarch64-unknown-linux-gnu
- name: install multilib
if: ${{ matrix.linux }}
run: sudo apt install gcc-multilib
- 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/librhsp/librhsp/prebuilts