Skip to content

Commit 45fb0a6

Browse files
committed
Another iteration of build and deploy of native MinGW toolchain with itself
1 parent 1a70d1b commit 45fb0a6

File tree

3 files changed

+251
-46
lines changed

3 files changed

+251
-46
lines changed

.github/workflows/build-package.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Build MSYS2 package
33
on:
44
workflow_call:
55
inputs:
6+
if:
7+
description: "Condition to run the workflow"
8+
type: boolean
9+
default: true
610
package_name:
711
description: "Package name to build"
812
type: string
@@ -40,7 +44,16 @@ env:
4044
CLEAN_BUILD: 1
4145

4246
jobs:
47+
skip:
48+
if: inputs.if == 'false'
49+
name: Skip build of ${{ inputs.package_name }}
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Skip build
53+
run: echo "Skip build for ${{ inputs.package_name }}"
54+
4355
build:
56+
if: inputs.if != 'false'
4457
name: Build ${{ inputs.package_name }}
4558
timeout-minutes: 720
4659
runs-on: >-
@@ -76,7 +89,7 @@ jobs:
7689
uses: actions/checkout@v4
7790
with:
7891
repository: ${{ inputs.packages_repository }}
79-
ref: ${{ ((inputs.runner_arch == 'aarch64') && !inputs.build_with_native) && format('{0}-cross', inputs.packages_branch) || inputs.packages_branch }}
92+
ref: ${{ ((inputs.runner_arch == 'aarch64') && !inputs.build_with_native) && format('{0}-cross', inputs.packages_branch) || ((inputs.packages_repository == 'Windows-on-ARM-Experiments/MINGW-packages') && format('{0}-native-2', inputs.packages_branch) || inputs.packages_branch) }}
8093
sparse-checkout: ${{ inputs.package_name }}
8194
path: ${{ github.workspace }}/packages
8295

0 commit comments

Comments
 (0)