-
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 1.97 KB
/
gnulib_tests.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
name: GNULIB Patch Tests
on:
push:
branches-ignore:
- trash
schedule:
- cron: '30 5 * * *'
env:
CI_REQ_DOTNET_SDK_VER: 6.0.401
NUKE_TELEMETRY_OPTOUT: 1
MSYS: "winsymlinks:native wincmdln"
MSYS2_ARG_CONV_EXCL: "*"
MSYS2_PATH_TYPE: inherit
WLB_BASE_FOLDER: "d:/WLB"
MSYSTEM: UCRT64
MSYS_PATH: d:/msys64
jobs:
get_patch_matrix:
uses: ./.github/workflows/do_build.yml
with:
BuildPkg: script
Script: .github/gnu_patchtest.sh gnulib_dump_patches
NoDebugBuild: true
gnulib_source_cache:
runs-on: windows-latest
needs: gnulib_test_all_patches # doesn't actually need it for the bare clone but as we also use this step to cache the last successful commit id we require it
defaults:
run:
shell: pwsh
steps:
- name: clone src
run: git clone --bare git://git.sv.gnu.org/gnulib.git ${{env.WLB_BASE_FOLDER}}/gnulib.git
- name: Export Success Commit
shell: pwsh
run: echo ${{ needs.gnulib_test_all_patches.outputs.ScriptRes }} > ${{env.WLB_BASE_FOLDER}}/gnulib.git/gnulib_success_commit.txt
- name: Cache gnulib bare repo
uses: actions/cache/save@v4
with:
path: ${{env.WLB_BASE_FOLDER}}/gnulib.git
key: gnulib-bare
enableCrossOsArchive: true
gnulib_test_all_patches:
name: Test All Patches Together
uses: ./.github/workflows/do_build.yml
with:
BuildPkg: script
NoDebugBuild: true
Script: .github/gnu_patchtest.sh all_patch
gnulib_test_patch:
name: Test Single
needs: get_patch_matrix
strategy:
fail-fast: false
matrix:
PatchName: ${{ fromjson(needs.get_patch_matrix.outputs.ScriptRes) }}
Mode: [branch, patch]
uses: ./.github/workflows/do_build.yml
with:
NoDebugBuild: true
BuildPkg: script
Script: .github/gnu_patchtest.sh ${{ matrix.Mode }} '${{ matrix.PatchName }}'