1313 required : true
1414 default : ' false'
1515
16+ permissions :
17+ contents : write
18+
1619env :
17- version : m116-d2c211228d
20+ version : m123-4a0a5e9906
1821
1922jobs :
2023 macos :
21- runs-on : macos-11
24+ runs-on : macos-14
2225 strategy :
2326 matrix :
2427 machine : ["x64", "arm64"]
2528 build_type : [Release, Debug]
2629 fail-fast : false
2730 steps :
28- - uses : actions/checkout@v3
31+ - uses : actions/checkout@v4
2932 - run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
3033 if : ${{ github.event.inputs.skip_release != 'true' }}
3134 env :
32- API_TOKEN : ${{ secrets.API_TOKEN }}
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3336 - uses : abdes/gha-setup-ninja@660f330a40aefa8d11632b3f901e92a4adb33d65
3437 - run : python3 script/checkout.py --version ${{ env.version }}
3538 - run : python3 script/build.py --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
3639 - run : python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
37- - uses : actions/upload-artifact@v3
40+ - uses : actions/upload-artifact@v4
3841 with :
3942 name : Skia-${{ env.version }}-macos-${{ matrix.build_type }}-${{ matrix.machine }}.zip
4043 path : ' *.zip'
4144 - run : python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
4245 if : ${{ github.event.inputs.skip_release != 'true' }}
4346 env :
44- API_TOKEN : ${{ secrets.API_TOKEN }}
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4548
4649 linux :
47- runs-on : ubuntu-20 .04
50+ runs-on : ubuntu-22 .04
4851 strategy :
4952 matrix :
5053 target_machine : ["x64", "arm64"]
5154 build_type : [Release, Debug]
5255 fail-fast : false
5356 steps :
54- - uses : actions/checkout@v3
57+ - uses : actions/checkout@v4
5558 - run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
5659 if : ${{ github.event.inputs.skip_release != 'true' }}
5760 env :
58- API_TOKEN : ${{ secrets.API_TOKEN }}
61+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5962 - uses : abdes/gha-setup-ninja@660f330a40aefa8d11632b3f901e92a4adb33d65
6063 - run : sudo ./script/prepare_linux.sh
6164 - run : |
@@ -65,42 +68,42 @@ jobs:
6568 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/checkout.py --version ${{ env.version }}
6669 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/build.py --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
6770 - 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
71+ - uses : actions/upload-artifact@v4
6972 with :
7073 name : Skia-${{ env.version }}-linux-${{ matrix.build_type }}-${{ matrix.target_machine }}.zip
7174 path : ' *.zip'
7275 - run : python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
7376 if : ${{ github.event.inputs.skip_release != 'true' }}
7477 env :
75- API_TOKEN : ${{ secrets.API_TOKEN }}
78+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7679
7780 android :
7881 if : false
79- runs-on : ubuntu-20 .04
82+ runs-on : ubuntu-22 .04
8083 strategy :
8184 matrix :
8285 machine : [arm, arm64, x64, x86]
8386 steps :
84- - uses : actions/checkout@v3
87+ - uses : actions/checkout@v4
8588 - run : python3 script/check_release.py --version ${{ env.version }} --system android --machine ${{ matrix.machine }}
8689 if : ${{ github.event.inputs.skip_release != 'true' }}
8790 env :
88- API_TOKEN : ${{ secrets.API_TOKEN }}
91+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8992 - uses : actions/setup-java@v1
9093 with :
9194 java-version : 1.8
9295 - run : sudo ./script/prepare_linux.sh
9396 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/checkout.py --version ${{ env.version }} --system android --machine ${{ matrix.machine }}
9497 - 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"
9598 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/archive.py --system android --machine ${{ matrix.machine }}
96- - uses : actions/upload-artifact@v3
99+ - uses : actions/upload-artifact@v4
97100 with :
98101 name : Skia-${{ env.version }}-android-Release-${{ matrix.machine }}.zip
99102 path : ' *.zip'
100103 - run : python3 script/release.py --system android --machine ${{ matrix.machine }}
101104 if : ${{ github.event.inputs.skip_release != 'true' }}
102105 env :
103- API_TOKEN : ${{ secrets.API_TOKEN }}
106+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
104107
105108 windows :
106109 runs-on : windows-latest
@@ -109,12 +112,12 @@ jobs:
109112 build_type : [Release, Debug]
110113 fail-fast : false
111114 steps :
112- - uses : actions/checkout@v3
115+ - uses : actions/checkout@v4
113116 - shell : bash
114117 run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
115118 if : ${{ github.event.inputs.skip_release != 'true' }}
116119 env :
117- API_TOKEN : ${{ secrets.API_TOKEN }}
120+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
118121 - uses : abdes/gha-setup-ninja@660f330a40aefa8d11632b3f901e92a4adb33d65
119122 - uses : microsoft/setup-msbuild@v1
120123 - uses : ilammy/msvc-dev-cmd@v1
@@ -126,12 +129,12 @@ jobs:
126129 run : python3 script/build.py --build-type ${{ matrix.build_type }}
127130 - shell : bash
128131 run : python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
129- - uses : actions/upload-artifact@v3
132+ - uses : actions/upload-artifact@v4
130133 with :
131134 name : Skia-${{ env.version }}-windows-${{ matrix.build_type }}-x64.zip
132135 path : ' *.zip'
133136 - shell : bash
134137 run : python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
135138 if : ${{ github.event.inputs.skip_release != 'true' }}
136139 env :
137- API_TOKEN : ${{ secrets.API_TOKEN }}
140+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments