-
Notifications
You must be signed in to change notification settings - Fork 0
149 lines (135 loc) · 4.89 KB
/
all.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# This is a basic workflow to help you get started with Actions
name: All
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
modes:
description: 'modes'
required: true
type: string
default: '["gcc-14.1.0"]'
arch:
description: 'arch'
required: true
type: string
default: '["i686", "x86_64"]'
threading:
description: 'threading'
required: true
type: string
default: '["posix", "win32", "mcf"]'
exceptions:
description: 'exceptions'
required: true
type: string
default: '["dwarf", "seh", "sjlj"]'
crt:
description: 'crt'
required: true
type: string
default: '["msvcrt", "ucrt"]'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Build the complete toolchains
build:
strategy:
fail-fast: false
matrix:
mode: ${{ fromJSON(github.event.inputs.modes) }}
arch: ${{ fromJSON(github.event.inputs.arch) }}
threading: ${{ fromJSON(github.event.inputs.threading) }}
exceptions: ${{ fromJSON(github.event.inputs.exceptions) }}
crt: ${{ fromJSON(github.event.inputs.crt) }}
exclude:
- arch: 'i686'
exceptions: 'seh'
- arch: 'x86_64'
exceptions: 'dwarf'
defaults:
run:
shell: msys2 {0}
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: true
install: >-
lndir
git
subversion
tar
zip
p7zip
make
patch
automake-wrapper
autoconf
autoconf-archive
libtool
flex
bison
gettext
gettext-devel
wget
sshpass
texinfo
autogen
dejagnu
pkgconf
dos2unix
- name: Change autocrlf
run: git config --global core.autocrlf input
shell: bash
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout the current repo
uses: actions/checkout@v4
with:
path: mingw64-builds-GHA
- name: Get build scripts
uses: actions/checkout@v4
with:
repository: starg2/mingw-builds
ref: custom
path: mingw-builds
- name: Show HEAD
run: git show --summary
working-directory: mingw-builds
- name: Install host toolchain (i686)
if: ${{ matrix.arch == 'i686' || matrix.exceptions == 'sjlj' }}
run: |
curl.exe -L -O https://github.com/starg2/mingw64-builds-GHA/releases/download/v2024-04-10/gcc-13.2.0_i686-${{ matrix.threading }}-${{ matrix.exceptions }}-${{ matrix.crt }}.zip
7z e gcc-13.2.0_i686-${{ matrix.threading }}-${{ matrix.exceptions }}-${{ matrix.crt }}.zip i686-13.2.0-release-${{ matrix.threading }}-${{ matrix.exceptions }}-${{ matrix.crt }}-rt_v12.7z
7z x i686-13.2.0-release-${{ matrix.threading }}-${{ matrix.exceptions }}-${{ matrix.crt }}-rt_v12.7z -o/d/toolchains
- name: Install host toolchain (x86_64)
if: ${{ matrix.arch == 'x86_64' || matrix.exceptions == 'sjlj' }}
run: |
curl.exe -L -O https://github.com/starg2/mingw64-builds-GHA/releases/download/v2024-04-10/gcc-13.2.0_x86_64-${{ matrix.threading }}-${{ matrix.exceptions }}-${{ matrix.crt }}.zip
7z e gcc-13.2.0_x86_64-${{ matrix.threading }}-${{ matrix.exceptions }}-${{ matrix.crt }}.zip x86_64-13.2.0-release-${{ matrix.threading }}-${{ matrix.exceptions }}-${{ matrix.crt }}-rt_v12.7z
7z x x86_64-13.2.0-release-${{ matrix.threading }}-${{ matrix.exceptions }}-${{ matrix.crt }}-rt_v12.7z -o/d/toolchains
- name: Build
run: >-
./build
--buildroot=/c/build/${{ matrix.mode }}
--mode=${{ matrix.mode }}
--arch=${{ matrix.arch }}
--exceptions=${{ matrix.exceptions }}
--rt-version=trunk
--threads=${{ matrix.threading }}
--with-default-msvcrt=${{ matrix.crt }}
--provided-toolchain=/d/toolchains
--enable-languages=c,c++
--jobs=4
--bin-compress
--src-compress
--logviewer-command=cat
--wait-for-logviewer
working-directory: mingw-builds
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.mode }}_${{ matrix.arch }}-${{ matrix.threading }}-${{ matrix.exceptions }}-${{ matrix.crt }}
path: C:/build/${{ matrix.mode }}/archives/*.7z