1818
1919jobs :
2020 macos :
21- runs-on : macos-10.15
21+ runs-on : macos-11
2222 strategy :
2323 matrix :
2424 machine : ["x64", "arm64"]
2525 build_type : [Release, Debug]
2626 fail-fast : false
2727 steps :
28- - uses : actions/checkout@v2
28+ - uses : actions/checkout@v3
2929 - run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
3030 if : ${{ github.event.inputs.skip_release != 'true' }}
3131 env :
3232 API_TOKEN : ${{ secrets.API_TOKEN }}
33+ - uses : abdes/gha-setup-ninja@660f330a40aefa8d11632b3f901e92a4adb33d65
3334 - run : python3 script/checkout.py --version ${{ env.version }}
3435 - run : python3 script/build.py --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
3536 - run : python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
36- - uses : actions/upload-artifact@v2
37+ - uses : actions/upload-artifact@v3
3738 with :
3839 name : Skia-${{ env.version }}-macos-${{ matrix.build_type }}-${{ matrix.machine }}.zip
3940 path : ' *.zip'
@@ -50,20 +51,21 @@ jobs:
5051 build_type : [Release, Debug]
5152 fail-fast : false
5253 steps :
53- - uses : actions/checkout@v2
54+ - uses : actions/checkout@v3
55+ - run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
56+ if : ${{ github.event.inputs.skip_release != 'true' }}
57+ env :
58+ API_TOKEN : ${{ secrets.API_TOKEN }}
59+ - uses : abdes/gha-setup-ninja@660f330a40aefa8d11632b3f901e92a4adb33d65
5460 - run : sudo ./script/prepare_linux.sh
5561 - run : |
5662 sudo apt-get update
5763 sudo apt-get --yes install g\+\+-9-aarch64-linux-gnu
5864 if: ${{ matrix.target_machine == 'arm64' }}
59- - run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
60- if : ${{ github.event.inputs.skip_release != 'true' }}
61- env :
62- API_TOKEN : ${{ secrets.API_TOKEN }}
6365 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/checkout.py --version ${{ env.version }}
6466 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/build.py --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
6567 - 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 }}
66- - uses : actions/upload-artifact@v2
68+ - uses : actions/upload-artifact@v3
6769 with :
6870 name : Skia-${{ env.version }}-linux-${{ matrix.build_type }}-${{ matrix.target_machine }}.zip
6971 path : ' *.zip'
@@ -73,24 +75,25 @@ jobs:
7375 API_TOKEN : ${{ secrets.API_TOKEN }}
7476
7577 android :
78+ if : false
7679 runs-on : ubuntu-20.04
7780 strategy :
7881 matrix :
7982 machine : [arm, arm64, x64, x86]
8083 steps :
81- - uses : actions/checkout@v2
82- - uses : actions/setup-java@v1
83- with :
84- java-version : 1.8
85- - run : sudo ./script/prepare_linux.sh
84+ - uses : actions/checkout@v3
8685 - run : python3 script/check_release.py --version ${{ env.version }} --system android --machine ${{ matrix.machine }}
8786 if : ${{ github.event.inputs.skip_release != 'true' }}
8887 env :
8988 API_TOKEN : ${{ secrets.API_TOKEN }}
89+ - uses : actions/setup-java@v1
90+ with :
91+ java-version : 1.8
92+ - run : sudo ./script/prepare_linux.sh
9093 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/checkout.py --version ${{ env.version }} --system android --machine ${{ matrix.machine }}
9194 - 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"
9295 - run : PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/archive.py --system android --machine ${{ matrix.machine }}
93- - uses : actions/upload-artifact@v2
96+ - uses : actions/upload-artifact@v3
9497 with :
9598 name : Skia-${{ env.version }}-android-Release-${{ matrix.machine }}.zip
9699 path : ' *.zip'
@@ -100,27 +103,30 @@ jobs:
100103 API_TOKEN : ${{ secrets.API_TOKEN }}
101104
102105 windows :
103- runs-on : windows-2019
106+ runs-on : windows-latest
104107 strategy :
105108 matrix :
106109 build_type : [Release, Debug]
107110 fail-fast : false
108111 steps :
109- - uses : actions/checkout@v2
112+ - uses : actions/checkout@v3
110113 - shell : bash
111114 run : python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
112115 if : ${{ github.event.inputs.skip_release != 'true' }}
113116 env :
114117 API_TOKEN : ${{ secrets.API_TOKEN }}
118+ - uses : abdes/gha-setup-ninja@660f330a40aefa8d11632b3f901e92a4adb33d65
115119 - uses : microsoft/setup-msbuild@v1
116120 - uses : ilammy/msvc-dev-cmd@v1
121+ with :
122+ arch : amd64
117123 - shell : bash
118124 run : python3 script/checkout.py --version ${{ env.version }}
119125 - shell : bash
120126 run : python3 script/build.py --build-type ${{ matrix.build_type }}
121127 - shell : bash
122128 run : python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
123- - uses : actions/upload-artifact@v2
129+ - uses : actions/upload-artifact@v3
124130 with :
125131 name : Skia-${{ env.version }}-windows-${{ matrix.build_type }}-x64.zip
126132 path : ' *.zip'
0 commit comments