48
48
install : standalone
49
49
sysroot : custom
50
50
51
+ - arch : ppc64le
52
+ toolchain : clang
53
+ config : debug
54
+ rustc : 2021-02-20
55
+ output : src
56
+ install : rustup
57
+ sysroot : common
58
+
51
59
steps :
52
60
# Setup: checkout
53
61
- uses : actions/checkout@v2
68
76
echo 'QEMU_ARCH=aarch64' >> $GITHUB_ENV
69
77
echo 'QEMU_MACHINE=virt' >> $GITHUB_ENV
70
78
echo 'QEMU_CPU=cortex-a72' >> $GITHUB_ENV
79
+ - if : matrix.arch == 'ppc64le'
80
+ run : |
81
+ echo 'MAKE_ARCH=ARCH=powerpc' >> $GITHUB_ENV
82
+ echo 'MAKE_CROSS_COMPILE=CROSS_COMPILE=powerpc64le-linux-gnu-' >> $GITHUB_ENV
83
+ echo 'IMAGE_PATH=vmlinux' >> $GITHUB_ENV
84
+ echo 'QEMU_ARCH=ppc64' >> $GITHUB_ENV
85
+ echo 'QEMU_MACHINE=pseries' >> $GITHUB_ENV
86
+ echo 'QEMU_CPU=POWER9' >> $GITHUB_ENV
71
87
72
88
- if : matrix.toolchain == 'clang'
73
89
run : echo 'MAKE_TOOLCHAIN=CC=clang-11' >> $GITHUB_ENV
94
110
# Setup: GCC
95
111
- if : matrix.arch == 'arm64'
96
112
run : sudo apt-get install -y gcc-aarch64-linux-gnu
113
+ - if : matrix.arch == 'ppc64le'
114
+ run : sudo apt-get install -y gcc-powerpc64le-linux-gnu
97
115
98
116
# Setup: libelf
99
117
- run : sudo apt-get install -y libelf-dev
@@ -103,6 +121,8 @@ jobs:
103
121
run : sudo apt-get install -y qemu-system-x86
104
122
- if : matrix.arch == 'arm64'
105
123
run : sudo apt-get install -y qemu-system-arm
124
+ - if : matrix.arch == 'ppc64le'
125
+ run : sudo apt-get install -y qemu-system-ppc64
106
126
107
127
# Setup: rustc
108
128
- if : matrix.install == 'rustup'
@@ -164,6 +184,7 @@ jobs:
164
184
-cpu ${{ env.QEMU_CPU }} \
165
185
-smp 2 \
166
186
-nographic \
187
+ -vga none \
167
188
-no-reboot \
168
189
-append '${{ env.QEMU_APPEND }} \
169
190
rust_example.my_i32=123321 \
0 commit comments