@@ -36,27 +36,31 @@ jobs:
3636
3737 - name : Install dependencies
3838 run : |
39- sudo add-apt-repository "deb [arch=arm64,s390x,ppc64el] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc) main" || true
40- sudo add-apt-repository "deb [arch=arm64,s390x,ppc64el] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc)-updates main" || true
39+ sudo add-apt-repository "deb [arch=arm64,s390x,ppc64el,riscv64 ] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc) main" || true
40+ sudo add-apt-repository "deb [arch=arm64,s390x,ppc64el,riscv64 ] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc)-updates main" || true
4141
4242 sudo dpkg --add-architecture arm64
4343 sudo dpkg --add-architecture s390x
4444 sudo dpkg --add-architecture ppc64el
45+ sudo dpkg --add-architecture riscv64
4546
4647 sudo apt-get update || true
4748
4849 sudo apt-get install -y \
4950 crossbuild-essential-arm64 \
5051 crossbuild-essential-s390x \
5152 crossbuild-essential-ppc64el \
53+ crossbuild-essential-riscv64 \
5254 libseccomp-dev:amd64 \
5355 libseccomp-dev:arm64 \
5456 libseccomp-dev:s390x \
5557 libseccomp-dev:ppc64el \
58+ libseccomp-dev:riscv64 \
5659 libbtrfs-dev:amd64 \
5760 libbtrfs-dev:arm64 \
5861 libbtrfs-dev:s390x \
59- libbtrfs-dev:ppc64el
62+ libbtrfs-dev:ppc64el \
63+ libbtrfs-dev:riscv64
6064
6165 - name : Build amd64
6266 env :
@@ -96,6 +100,16 @@ jobs:
96100 make binaries
97101 mv bin bin_ppc64le
98102
103+ - name : Build riscv64
104+ env :
105+ GOOS : linux
106+ GOARCH : riscv64
107+ CGO_ENABLED : 1
108+ CC : riscv64-linux-gnu-gcc
109+ run : |
110+ make binaries
111+ mv bin bin_riscv64
112+
99113 #
100114 # Upload
101115 #
@@ -124,6 +138,12 @@ jobs:
124138 name : linux_ppc64le
125139 path : src/github.com/containerd/containerd/bin_ppc64le
126140
141+ - name : Upload artifacts (linux_riscv64)
142+ uses : actions/upload-artifact@v1
143+ with :
144+ name : linux_riscv64
145+ path : src/github.com/containerd/containerd/bin_riscv64
146+
127147 windows :
128148 name : Windows
129149 runs-on : windows-latest
0 commit comments