Skip to content

Commit

Permalink
chore(ci): add actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Dec 10, 2023
1 parent 3c290b0 commit 97fa064
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: "binaries: frr"

on:
push:
branches:
- main

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

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

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'

- uses: oven-sh/setup-bun@v1
if: matrix.os != 'windows-latest'
with:
bun-version: latest

- name: Install pnpm dependencies
run: pnpm install

- name: Build for Unix
if: matrix.os != 'windows-latest'
run: pnpm run bun:compile

- name: Build for Windows
if: matrix.os == 'windows-latest'
run: pnpm run node:compile

- name: Upload workflow artifacts for Unix
if: matrix.os != 'windows-latest'
uses: actions/upload-artifact@v3
with:
if-no-files-found: ignore
name: ${{ matrix.os }}
path: ./frr-unix

- name: Upload workflow artifacts for Windows
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with:
if-no-files-found: ignore
name: ${{ matrix.os }}
path: ./frr-win.exe

0 comments on commit 97fa064

Please sign in to comment.