mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
85 lines
2.1 KiB
YAML
85 lines
2.1 KiB
YAML
name: start-tunnel
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
inputs:
|
|
environment:
|
|
type: choice
|
|
description: Environment
|
|
options:
|
|
- NONE
|
|
- dev
|
|
- unstable
|
|
- dev-unstable
|
|
runner:
|
|
type: choice
|
|
description: Runner
|
|
options:
|
|
- standard
|
|
- fast
|
|
arch:
|
|
type: choice
|
|
description: Architecture
|
|
options:
|
|
- ALL
|
|
- x86_64
|
|
- aarch64
|
|
- riscv64
|
|
push:
|
|
branches:
|
|
- master
|
|
- next/*
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- next/*
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
NODEJS_VERSION: "24.11.0"
|
|
ENVIRONMENT: '${{ fromJson(format(''["{0}", ""]'', github.event.inputs.environment || ''dev''))[github.event.inputs.environment == ''NONE''] }}'
|
|
|
|
jobs:
|
|
compile:
|
|
name: Build Debian Package
|
|
if: github.event.pull_request.draft != true
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
arch: >-
|
|
${{
|
|
fromJson('{
|
|
"x86_64": ["x86_64"],
|
|
"aarch64": ["aarch64"],
|
|
"riscv64": ["riscv64"],
|
|
"ALL": ["x86_64", "aarch64", "riscv64"]
|
|
}')[github.event.inputs.platform || 'ALL']
|
|
}}
|
|
runs-on: ${{ fromJson('["ubuntu-latest", "buildjet-32vcpu-ubuntu-2204"]')[github.event.inputs.runner == 'fast'] }}
|
|
steps:
|
|
- name: Mount tmpfs
|
|
if: ${{ github.event.inputs.runner == 'fast' }}
|
|
run: sudo mount -t tmpfs tmpfs .
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
- uses: ./.github/actions/setup-build
|
|
with:
|
|
nodejs-version: ${{ env.NODEJS_VERSION }}
|
|
|
|
- name: Make
|
|
run: make tunnel-deb
|
|
env:
|
|
PLATFORM: ${{ matrix.arch }}
|
|
SCCACHE_GHA_ENABLED: on
|
|
SCCACHE_GHA_VERSION: 0
|
|
|
|
- uses: actions/upload-artifact@v7
|
|
with:
|
|
name: start-tunnel_${{ matrix.arch }}.deb
|
|
path: results/start-tunnel-*_${{ matrix.arch }}.deb
|