22 push :
33 branches :
44 - master
5+ - ' m*'
56 paths :
67 - " .github/workflows/*"
78 - " script/*"
1415 default : ' false'
1516
1617env :
17- version : m116-d2c211228d
18+ version : m119-fcb55886b9
1819
1920jobs :
2021 macos :
21- runs-on : macos-11
22+ runs-on : macos-14
2223 strategy :
2324 matrix :
2425 machine : ["x64", "arm64"]
2526 build_type : [Release, Debug]
2627 fail-fast : false
2728 steps :
28- - uses : actions/checkout@v3
29+ - uses : actions/checkout@v4
2930 - run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
3031 if : ${{ github.event.inputs.skip_release != 'true' }}
3132 env :
32- API_TOKEN : ${{ secrets.API_TOKEN }}
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3334 - uses : abdes/gha-setup-ninja@660f330a40aefa8d11632b3f901e92a4adb33d65
3435 - run : python3 script/checkout.py --version ${{ env.version }}
3536 - run : python3 script/build.py --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
3637 - run : python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
37- - uses : actions/upload-artifact@v3
38+ - uses : actions/upload-artifact@v4
3839 with :
3940 name : Skia-${{ env.version }}-macos-${{ matrix.build_type }}-${{ matrix.machine }}.zip
4041 path : ' *.zip'
4142 - run : python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
4243 if : ${{ github.event.inputs.skip_release != 'true' }}
4344 env :
44- API_TOKEN : ${{ secrets.API_TOKEN }}
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4546
4647 linux :
47- runs-on : ubuntu-20 .04
48+ runs-on : ubuntu-22 .04
4849 strategy :
4950 matrix :
5051 target_machine : ["x64", "arm64"]
5152 build_type : [Release, Debug]
5253 fail-fast : false
5354 steps :
54- - uses : actions/checkout@v3
55+ - uses : actions/checkout@v4
5556 - run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
5657 if : ${{ github.event.inputs.skip_release != 'true' }}
5758 env :
58- API_TOKEN : ${{ secrets.API_TOKEN }}
59+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5960 - uses : abdes/gha-setup-ninja@660f330a40aefa8d11632b3f901e92a4adb33d65
6061 - run : sudo ./script/prepare_linux.sh
6162 - run : |
@@ -65,42 +66,42 @@ jobs:
6566 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/checkout.py --version ${{ env.version }}
6667 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/build.py --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
6768 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
68- - uses : actions/upload-artifact@v3
69+ - uses : actions/upload-artifact@v4
6970 with :
7071 name : Skia-${{ env.version }}-linux-${{ matrix.build_type }}-${{ matrix.target_machine }}.zip
7172 path : ' *.zip'
7273 - run : python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
7374 if : ${{ github.event.inputs.skip_release != 'true' }}
7475 env :
75- API_TOKEN : ${{ secrets.API_TOKEN }}
76+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7677
7778 android :
7879 if : false
79- runs-on : ubuntu-20 .04
80+ runs-on : ubuntu-22 .04
8081 strategy :
8182 matrix :
8283 machine : [arm, arm64, x64, x86]
8384 steps :
84- - uses : actions/checkout@v3
85+ - uses : actions/checkout@v4
8586 - run : python3 script/check_release.py --version ${{ env.version }} --system android --machine ${{ matrix.machine }}
8687 if : ${{ github.event.inputs.skip_release != 'true' }}
8788 env :
88- API_TOKEN : ${{ secrets.API_TOKEN }}
89+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8990 - uses : actions/setup-java@v1
9091 with :
9192 java-version : 1.8
9293 - run : sudo ./script/prepare_linux.sh
9394 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/checkout.py --version ${{ env.version }} --system android --machine ${{ matrix.machine }}
9495 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/build.py --system android --machine ${{ matrix.machine }} --ndk "/usr/local/lib/android/sdk/ndk-bundle"
9596 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/archive.py --system android --machine ${{ matrix.machine }}
96- - uses : actions/upload-artifact@v3
97+ - uses : actions/upload-artifact@v4
9798 with :
9899 name : Skia-${{ env.version }}-android-Release-${{ matrix.machine }}.zip
99100 path : ' *.zip'
100101 - run : python3 script/release.py --system android --machine ${{ matrix.machine }}
101102 if : ${{ github.event.inputs.skip_release != 'true' }}
102103 env :
103- API_TOKEN : ${{ secrets.API_TOKEN }}
104+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
104105
105106 windows :
106107 runs-on : windows-latest
@@ -109,12 +110,12 @@ jobs:
109110 build_type : [Release, Debug]
110111 fail-fast : false
111112 steps :
112- - uses : actions/checkout@v3
113+ - uses : actions/checkout@v4
113114 - shell : bash
114115 run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
115116 if : ${{ github.event.inputs.skip_release != 'true' }}
116117 env :
117- API_TOKEN : ${{ secrets.API_TOKEN }}
118+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
118119 - uses : abdes/gha-setup-ninja@660f330a40aefa8d11632b3f901e92a4adb33d65
119120 - uses : microsoft/setup-msbuild@v1
120121 - uses : ilammy/msvc-dev-cmd@v1
@@ -126,12 +127,12 @@ jobs:
126127 run : python3 script/build.py --build-type ${{ matrix.build_type }}
127128 - shell : bash
128129 run : python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
129- - uses : actions/upload-artifact@v3
130+ - uses : actions/upload-artifact@v4
130131 with :
131132 name : Skia-${{ env.version }}-windows-${{ matrix.build_type }}-x64.zip
132133 path : ' *.zip'
133134 - shell : bash
134135 run : python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
135136 if : ${{ github.event.inputs.skip_release != 'true' }}
136137 env :
137- API_TOKEN : ${{ secrets.API_TOKEN }}
138+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments