mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-07-08 19:15:09 +00:00
Implements build and release
This commit is contained in:
56
.github/workflows/build-on-pr.yaml
vendored
Normal file
56
.github/workflows/build-on-pr.yaml
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
name: Build on PR
|
||||
on:
|
||||
pull_request:
|
||||
types: ["opened"]
|
||||
jobs:
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: v18.19.0
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Build the app
|
||||
shell: bash
|
||||
run: |
|
||||
npm install -g pnpm
|
||||
pnpm install
|
||||
pnpm build:windows
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: v18.19.0
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install builder dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt install flatpak flatpak-builder elfutils -y
|
||||
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
git config --global --add protocol.file.allow always
|
||||
- name: Build the app
|
||||
shell: bash
|
||||
run: |
|
||||
npm install -g pnpm
|
||||
pnpm install
|
||||
pnpm build:linux
|
||||
build-mac:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: v18.19.0
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Build the app
|
||||
shell: bash
|
||||
run: |
|
||||
npm install -g pnpm
|
||||
pnpm install
|
||||
pnpm build:mac
|
||||
Reference in New Issue
Block a user