Skip to content

Commit d504eb4

Browse files
authored
Fewer concurrent jobs (#15)
* windows-build-tools.yml - run fewer concurrent jobs * common.rb - use --disable-download-timeout
1 parent 39add79 commit d504eb4

File tree

2 files changed

+37
-4
lines changed

2 files changed

+37
-4
lines changed

.github/workflows/windows-build-tools.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ jobs:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
timeout-minutes: 10
4444

45-
gcc:
45+
gcc-mingw:
46+
if: ${{ always() }}
47+
needs: msys2
4648
name: >-
4749
${{ matrix.gcc }} gcc
4850
#env:
@@ -54,6 +56,34 @@ jobs:
5456
include:
5557
- { gcc: mingw64 , ruby: '3.0' }
5658
- { gcc: mingw64-3.0, ruby: mingw }
59+
steps:
60+
- name: Checkout
61+
uses: actions/checkout@v4
62+
63+
- name: Set up Ruby
64+
uses: ruby/setup-ruby@v1
65+
with:
66+
ruby-version: ${{ matrix.ruby }}
67+
timeout-minutes: 7
68+
69+
- name: Update ${{ matrix.gcc }} gcc 7z and Upload
70+
run: ruby create_gcc_pkg.rb ${{ matrix.gcc }}
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
timeout-minutes: 13
74+
75+
gcc-ucrt:
76+
if: ${{ always() }}
77+
needs: gcc-mingw
78+
name: >-
79+
${{ matrix.gcc }} gcc
80+
#env:
81+
# FORCE_UPDATE: true
82+
runs-on: windows-2022
83+
strategy:
84+
fail-fast: false
85+
matrix:
86+
include:
5787
- { gcc: ucrt64 , ruby: 3.1 }
5888
- { gcc: ucrt64-3.0 , ruby: ucrt }
5989
steps:
@@ -70,4 +100,5 @@ jobs:
70100
run: ruby create_gcc_pkg.rb ${{ matrix.gcc }}
71101
env:
72102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73-
timeout-minutes: 10
103+
timeout-minutes: 13
104+

common.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,13 @@ def pacman_syuu(ignore = nil)
326326

327327
ignore = ignore ? "--ignore #{ignore}" : nil
328328

329-
exec_check 'Updating all installed packages', "#{PACMAN} -Syuu --noconfirm #{ignore}"
329+
cmd = "#{PACMAN} -Syuu --disable-download-timeout --noconfirm #{ignore}"
330+
331+
exec_check 'Updating all installed packages', cmd
330332

331333
system 'taskkill /f /fi "MODULES eq msys-2.0.dll"'
332334

333-
exec_check 'Updating all installed packages (2nd pass)', "#{PACMAN} -Syuu --noconfirm #{ignore}"
335+
exec_check 'Updating all installed packages (2nd pass)', cmd
334336

335337
system 'taskkill /f /fi "MODULES eq msys-2.0.dll"'
336338

0 commit comments

Comments
 (0)