Skip to content

Commit

Permalink
[github] Add build workflow for Linux and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Nov 21, 2024
1 parent 423438f commit ae4dec6
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build
on: [push, pull_request]

jobs:
build_on_linux:
runs-on: ubuntu-latest
steps:
- name: 👀 Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: ⬢ Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: 🧶 Install workspace node modules
run: yarn install --frozen-lockfile
- name: 📦️ Build packages
run: yarn build
- name: 🧶 Install electron node modules
run: yarn install --frozen-lockfile
working-directory: apps/menu-bar/electron
- name: 📦️ Build electron app
run: yarn make
working-directory: apps/menu-bar/electron
- uses: actions/upload-artifact@v4
with:
name: linux-artifact
path: apps/menu-bar/electron/out

build_on_win:
runs-on: windows-latest
steps:
- name: 👀 Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: ⬢ Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: 🧶 Install workspace node modules
run: yarn install --frozen-lockfile
- name: 📦️ Build packages
run: yarn build
- name: 🧶 Install electron node modules
run: yarn install --frozen-lockfile
working-directory: apps/menu-bar/electron
- name: 📦️ Build electron app
run: yarn make
working-directory: apps/menu-bar/electron
- uses: actions/upload-artifact@v4
with:
name: windows-artifact
path: apps/menu-bar/electron/out

0 comments on commit ae4dec6

Please sign in to comment.