Skip to content

Commit 43cf6b7

Browse files
committed
Add 32-bit builds on GitHub CI
1 parent 71fef04 commit 43cf6b7

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/build.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616

1717
jobs:
1818
build:
19+
name: Build (64-bit)
1920
runs-on: ${{ matrix.os }}
2021
strategy:
2122
matrix:
@@ -52,3 +53,57 @@ jobs:
5253
- name: Test and Check Binary Compatibility
5354
run: "sbt -batch +test +mimaReportBinaryIssues"
5455
shell: bash
56+
57+
build-armv7:
58+
name: Build (32-bit, armv7)
59+
runs-on: ubuntu-22.04
60+
strategy:
61+
matrix:
62+
java: [17, 21]
63+
steps:
64+
- uses: actions/checkout@v4
65+
with:
66+
fetch-depth: 300
67+
- name: Fetch tags
68+
run: git fetch --depth=300 origin +refs/tags/*:refs/tags/*
69+
- uses: uraimo/run-on-arch-action@v2
70+
with:
71+
arch: armv7
72+
distro: ubuntu22.04
73+
install: |
74+
apt-get update
75+
apt-get install -y curl git openjdk-${{ matrix.java }}-jdk nodejs npm
76+
run: |
77+
git config --global core.autocrlf false
78+
curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-armv7a-linux -o cs
79+
chmod +x cs
80+
./cs setup
81+
npm install -g npm@latest
82+
sbt -batch +test +mimaReportBinaryIssues
83+
84+
build-i386:
85+
name: Build (32-bit, i386)
86+
runs-on: ubuntu-22.04
87+
strategy:
88+
matrix:
89+
java: [17, 21]
90+
steps:
91+
- uses: actions/checkout@v4
92+
with:
93+
fetch-depth: 300
94+
- name: Fetch tags
95+
run: git fetch --depth=300 origin +refs/tags/*:refs/tags/*
96+
- uses: uraimo/run-on-arch-action@v2
97+
with:
98+
arch: i386
99+
distro: ubuntu20.04
100+
install: |
101+
dpkg --add-architecture i386
102+
apt-get update
103+
apt-get install -y curl git openjdk-${{ matrix.java }}-jdk:i386 nodejs npm
104+
run: |
105+
git config --global core.autocrlf false
106+
curl -fsL -o coursier.jar https://github.com/coursier/coursier/releases/latest/download/coursier.jar
107+
java -jar coursier.jar setup
108+
npm install -g npm@latest
109+
sbt -batch +test +mimaReportBinaryIssues

0 commit comments

Comments
 (0)