-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (49 loc) · 1.66 KB
/
test-go1_24_src.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
name: Builder test Go 1.24
on:
workflow_dispatch:
schedule:
- cron: '25 0 * * 4,6'
push:
branches:
- build
- "release-branch.go1.24"
paths:
- ".github/workflows/test-go1_24_src.yml"
- "**/*.go"
pull_request:
types: [opened, synchronize, reopened]
branches:
- build
- "release-branch.go1.24"
paths:
- ".github/workflows/test-go1_24_src.yml"
- "**/*.go"
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Download source
uses: actions/checkout@v4
with:
repository: 'golang/go'
ref: 'release-branch.go1.24'
# Patches for Go 1.24.x before more minor changes introduces.
- name: Apply patch
run: |
curl https://github.com/XTLS/go-win7/commit/f429f15f6305e4432afd7309b317e903bd76a5c0.diff | patch --verbose -p 1
curl https://github.com/XTLS/go-win7/commit/41f545de980e9285b68ece40d4b4e63feef9c5a1.diff | patch --verbose -p 1
curl https://github.com/XTLS/go-win7/commit/b6c99a977f732ee5553ddc75ae0fe3b47927fc1c.diff | patch --verbose -p 1
curl https://github.com/XTLS/go-win7/commit/36d7775e030192d3bf2dc111d1f6cfa89eae5f0c.diff | patch --verbose -p 1
curl https://github.com/XTLS/go-win7/commit/a3e4d4735a5d89f60b907308b556c5a53614914d.diff | patch --verbose -p 1
- name: Set-up Go
uses: actions/setup-go@v5
with:
go-version-file: 'src\go.mod'
check-latest: true
- name: Test patched Go
run: |
cd .\src
.\all.bat
cd ..\