@@ -20,14 +20,26 @@ jobs:
20
20
fail-fast : false
21
21
matrix :
22
22
include :
23
- - { os: ubuntu-20.04, target: linux, platform: linux-x64 }
24
- - { os: ubuntu-20.04, target: linux, platform: linux-arm64 }
23
+ - { os: ubuntu-20.04, target: linux, platform: linux-x64, container: 'ubuntu:18.04' }
24
+ - { os: ubuntu-20.04, target: linux, platform: linux-arm64, container: 'ubuntu:18.04' }
25
25
- { os: macos-11, target: darwin, platform: darwin-x64 }
26
26
- { os: macos-11, target: darwin, platform: darwin-arm64 }
27
27
- { os: windows-latest, target: windows, platform: win32-ia32 }
28
28
- { os: windows-latest, target: windows, platform: win32-x64 }
29
29
runs-on : ${{ matrix.os }}
30
+ container :
31
+ image : ${{ matrix.container }}
30
32
steps :
33
+ - name : Prepare container
34
+ if : ${{ matrix.target == 'linux' }}
35
+ run : |
36
+ apt-get update
37
+ apt-get install -y software-properties-common
38
+ add-apt-repository -y ppa:ubuntu-toolchain-r/test # For gcc-9 and g++-9
39
+ add-apt-repository -y ppa:git-core/ppa # For git>=2.18.
40
+ apt-get update
41
+ apt-get install -y sudo git gcc-9 g++-9
42
+
31
43
- name : Install aarch64-linux-gnu
32
44
if : ${{ matrix.platform == 'linux-arm64' }}
33
45
run : |
0 commit comments