Skip to content

ci: use full fetch depth when cloning webmesh #11

ci: use full fetch depth when cloning webmesh

ci: use full fetch depth when cloning webmesh #11

Workflow file for this run

name: Build
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
env:
WEBMESH_VERSION: main
CACHE_DEP_PATH: yarn.lock
jobs:
build:
name: Build
runs-on: ${{ vars.BUILD_PLATFORM == '' && 'ubuntu-latest' || vars.BUILD_PLATFORM }}
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(vars.BUILD_PLATFORM, 'self-hosted') }}
- name: Setup Node
uses: actions/setup-node@v3
with:
check-latest: true
node-version-file: .nvmrc
cache: ${{ startswith(vars.BUILD_PLATFORM, 'self-hosted') && '' || 'yarn' }}
cache-dependency-path: ${{ startswith(vars.BUILD_PLATFORM, 'self-hosted') && '' || env.CACHE_DEP_PATH }}
- name: Install Wine on Hosted Runners
if: ${{ !startswith(vars.BUILD_PLATFORM, 'self-hosted') }}
run: |
set -ex
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y wine64 wine32
- name: Build Webmesh Daemon
run: cd webmesh && make dist-webmeshd
- name: Build App
env:
GH_TOKEN: ${{ github.token }}
run: |
set -ex
yarn
yarn build:all