1515 linux-arm64 :
1616 runs-on : ubuntu-20.04
1717 steps :
18- - uses : actions/checkout@v2
18+ - uses : actions/checkout@v3
1919 with :
2020 submodules : recursive
2121 - name : Fix GitHub's mess
4545 - name : Set sha8
4646 id : slug
4747 run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
48- - uses : actions/upload-artifact@v2
48+ - uses : actions/upload-artifact@v3
4949 with :
5050 name : ${{ github.event.repository.name }}-linux-arm64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
5151 path : |
5454 linux-armhf :
5555 runs-on : ubuntu-20.04
5656 steps :
57- - uses : actions/checkout@v2
57+ - uses : actions/checkout@v3
5858 with :
5959 submodules : recursive
6060 - name : Fix GitHub's mess
8484 - name : Set sha8
8585 id : slug
8686 run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
87- - uses : actions/upload-artifact@v2
87+ - uses : actions/upload-artifact@v3
8888 with :
8989 name : ${{ github.event.repository.name }}-linux-armhf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
9090 path : |
9393 linux-i686 :
9494 runs-on : ubuntu-20.04
9595 steps :
96- - uses : actions/checkout@v2
96+ - uses : actions/checkout@v3
9797 with :
9898 submodules : recursive
9999 - name : Fix GitHub's mess
@@ -121,16 +121,55 @@ jobs:
121121 - name : Set sha8
122122 id : slug
123123 run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
124- - uses : actions/upload-artifact@v2
124+ - uses : actions/upload-artifact@v3
125125 with :
126126 name : ${{ github.event.repository.name }}-linux-i686-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
127127 path : |
128128 bin/*
129129
130+ linux-riscv64 :
131+ runs-on : ubuntu-20.04
132+ steps :
133+ - uses : actions/checkout@v3
134+ with :
135+ submodules : recursive
136+ - name : Fix GitHub's mess
137+ run : |
138+ sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
139+ sudo apt-get update -qq
140+ sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
141+ sudo apt-get purge -yqq libclang* libgbm* libllvm* libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
142+ - name : Set up dependencies
143+ run : |
144+ sudo dpkg --add-architecture riscv64
145+ sudo sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list
146+ echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ports-riscv64.list
147+ echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-riscv64.list
148+ echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-riscv64.list
149+ sudo apt-get update -qq
150+ sudo apt-get install -yqq g++-riscv64-linux-gnu libasound2-dev:riscv64 libcairo2-dev:riscv64 libdbus-1-dev:riscv64 libgl1-mesa-dev:riscv64 libglapi-mesa:riscv64 libglvnd0:riscv64 liblo-dev:riscv64 libpulse-dev:riscv64 libx11-dev:riscv64 libxcursor-dev:riscv64 libxext-dev:riscv64 libxrandr-dev:riscv64 qemu-user-static
151+ - name : Build linux riscv64 cross-compiled
152+ env :
153+ CC : riscv64-linux-gnu-gcc
154+ CXX : riscv64-linux-gnu-g++
155+ LDFLAGS : -static-libgcc -static-libstdc++
156+ PKG_CONFIG_PATH : /usr/lib/riscv64-linux-gnu/pkgconfig
157+ run : |
158+ make features
159+ make WITH_LTO=true -j $(nproc)
160+ - name : Set sha8
161+ id : slug
162+ run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
163+ - uses : actions/upload-artifact@v3
164+ with :
165+ name : ${{ github.event.repository.name }}-linux-riscv64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
166+ path : |
167+ bin/*
168+
130169 linux-x86_64 :
131170 runs-on : ubuntu-20.04
132171 steps :
133- - uses : actions/checkout@v2
172+ - uses : actions/checkout@v3
134173 with :
135174 submodules : recursive
136175 - name : Set up dependencies
@@ -146,7 +185,7 @@ jobs:
146185 - name : Set sha8
147186 id : slug
148187 run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
149- - uses : actions/upload-artifact@v2
188+ - uses : actions/upload-artifact@v3
150189 with :
151190 name : ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
152191 path : |
@@ -155,7 +194,7 @@ jobs:
155194 macos-universal :
156195 runs-on : macos-10.15
157196 steps :
158- - uses : actions/checkout@v2
197+ - uses : actions/checkout@v3
159198 with :
160199 submodules : recursive
161200 - name : Fix up Xcode
@@ -174,7 +213,7 @@ jobs:
174213 - name : Set sha8
175214 id : slug
176215 run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
177- - uses : actions/upload-artifact@v2
216+ - uses : actions/upload-artifact@v3
178217 with :
179218 name : ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
180219 path : |
@@ -189,7 +228,7 @@ jobs:
189228 win32 :
190229 runs-on : ubuntu-20.04
191230 steps :
192- - uses : actions/checkout@v2
231+ - uses : actions/checkout@v3
193232 with :
194233 submodules : recursive
195234 - name : Fix GitHub's mess
@@ -216,7 +255,7 @@ jobs:
216255 - name : Set sha8
217256 id : slug
218257 run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
219- - uses : actions/upload-artifact@v2
258+ - uses : actions/upload-artifact@v3
220259 with :
221260 name : ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
222261 path : |
@@ -227,7 +266,7 @@ jobs:
227266 win64 :
228267 runs-on : ubuntu-20.04
229268 steps :
230- - uses : actions/checkout@v2
269+ - uses : actions/checkout@v3
231270 with :
232271 submodules : recursive
233272 - name : Fix GitHub's mess
@@ -253,7 +292,7 @@ jobs:
253292 - name : Set sha8
254293 id : slug
255294 run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
256- - uses : actions/upload-artifact@v2
295+ - uses : actions/upload-artifact@v3
257296 with :
258297 name : ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
259298 path : |
@@ -264,7 +303,7 @@ jobs:
264303 plugin-validation :
265304 runs-on : ubuntu-20.04
266305 steps :
267- - uses : actions/checkout@v2
306+ - uses : actions/checkout@v3
268307 with :
269308 submodules : recursive
270309 - name : Set up dependencies
0 commit comments