Skip to content

wix: name program files explicitly #50

wix: name program files explicitly

wix: name program files explicitly #50

Workflow file for this run

name: Build
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
env:
WEBMESH_VERSION: main
WEBMESHD_BUILD_ARGS: --snapshot --clean --id webmeshd
GH_TOKEN: ${{ github.token }}
jobs:
build:
name: Build Package
strategy:
fail-fast: false
matrix:
target: [linux, mac, win]
include:
- target: linux
runner: ${{ vars.LINUX_BUILD_PLATFORM }}
- target: mac
runner: ${{ vars.MACOS_BUILD_PLATFORM }}
- target: win
runner: ${{ vars.WINDOWS_BUILD_PLATFORM }}
runs-on: ${{ matrix.runner }}
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout Webmesh
uses: actions/checkout@v4
with:
repository: webmeshproj/webmesh
ref: ${{ env.WEBMESH_VERSION }}
path: webmesh
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: stable
check-latest: true
cache: ${{ !startswith(matrix.runner, 'self-hosted') }}
cache-dependency-path: webmesh/go.sum
- name: Setup Node
uses: actions/setup-node@v3
with:
check-latest: true
node-version-file: .nvmrc
- name: Install UPX on Hosted macOS Runners
if: ${{ matrix.target == 'mac' && !startsWith(matrix.runner, 'self-hosted') }}
run: brew install upx
- name: Build Webmesh Helper Daemon
if: ${{ matrix.target != 'linux' }}
uses: goreleaser/goreleaser-action@v5
with:
version: latest
workdir: webmesh
args: build ${{ env.WEBMESHD_BUILD_ARGS }}
- name: Build Electron App
run: yarn && yarn build:${{ matrix.target }}