Skip to content

Commit 57eac8e

Browse files
committed
Build native mingw-w64-binutils package
1 parent 3d2bf1e commit 57eac8e

File tree

4 files changed

+30
-5
lines changed

4 files changed

+30
-5
lines changed

.github/scripts/build-package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ARGUMENTS="--syncdeps \
1515
--force"
1616

1717
if [[ "$PACKAGE_REPOSITORY" == *MINGW* ]]; then
18-
MINGW_ARCH=mingw64 makepkg-mingw $ARGUMENTS --skippgpcheck
18+
makepkg-mingw $ARGUMENTS
1919
else
2020
makepkg $ARGUMENTS
2121
fi

.github/workflows/build-package.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
description: "MSYS2 packages branch to build from"
2222
type: string
2323
default: "woarm64"
24+
runs_on_arm64:
25+
description: "Whether Arm64 runner is required"
26+
type: boolean
27+
default: false
2428

2529
defaults:
2630
run:
@@ -31,13 +35,14 @@ env:
3135

3236
jobs:
3337
build:
34-
runs-on: windows-latest
38+
runs-on: [Windows, ARM64, Blackhex]
3539

3640
steps:
3741
- uses: msys2/setup-msys2@v2
3842
with:
39-
msystem: MSYS
40-
update: true
43+
msystem: ${{ contains(inputs.packages_repository, 'MINGW') && 'MINGW64' || 'MSYS'}}
44+
cache: false
45+
update: false
4146

4247
- name: Checkout repository
4348
uses: actions/checkout@v4

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
87
workflow_dispatch:
98
inputs:
109
msys2_packages_branch:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build MinGW toolchain
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
inputs:
7+
mingw_packages_branch:
8+
description: "MINGW-packages branch to build"
9+
type: string
10+
required: false
11+
default: "woarm64"
12+
13+
jobs:
14+
mingw-w64-binutils:
15+
uses: ./.github/workflows/build-package.yml
16+
with:
17+
package_name: mingw-w64-binutils
18+
packages_repository: Windows-on-ARM-Experiments/MINGW-packages
19+
packages_branch: ${{ github.event.inputs.mingw_packages_branch || 'woarm64' }}
20+
dependencies: mingw-w64-cross-gcc
21+
runs_on_arm64: true

0 commit comments

Comments
 (0)