Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/base-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: base-build

on:
workflow_call:
inputs:
build-script:
required: true
type: string

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: self-hosted

steps:
- name: Cleanup workspace
shell: bash
run: |
set -euo pipefail
echo "Cleaning workspace: ${GITHUB_WORKSPACE}"
shopt -s dotglob nullglob
rm -rf "${GITHUB_WORKSPACE}/"*
rm -rf "${GITHUB_WORKSPACE}/"..?*
- name: Checkout source
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
path: src
clean: true

- name: Build
shell: bash
run: |
set -euo pipefail
${{ inputs.build-script }}
Loading
Loading