@@ -118,11 +118,30 @@ jobs:
118118 - name : Checkout
119119 uses : actions/checkout@main
120120
121- - name : Install deps
122- run : sudo apt-get update && sudo apt-get install -y gcc-multilib libc6-dev-i386
121+ - name : Setup i386 chroot
122+ run : |
123+ sudo apt-get update
124+ sudo apt-get install -y debootstrap schroot
125+
126+ sudo debootstrap --arch=i386 bookworm /chroot/i386 http://deb.debian.org/debian
127+
128+ sudo sh -c 'cat > /etc/schroot/chroot.d/i386.conf << EOF
129+ [i386]
130+ description=Debian i386
131+ type=directory
132+ profile=default
133+ directory=/chroot/i386
134+ users=runner
135+ EOF'
123136
124137 - name : Compiling
125- run : chmod +x project/luajit/scripts/Linux-Building.sh && ./project/luajit/scripts/Linux-Building.sh x86
138+ run : |
139+ sudo chroot /chroot/i386 /bin/bash -c "
140+ apt-get update && apt-get install -y make gcc git
141+ cd ${{ github.workspace }}
142+ chmod +x project/luajit/scripts/Linux-Building.sh
143+ ./project/luajit/scripts/Linux-Building.sh x86
144+ "
126145
127146 - name : Upload Artifact
128147 uses : actions/upload-artifact@main
@@ -166,8 +185,30 @@ jobs:
166185 - name : Checkout
167186 uses : actions/checkout@main
168187
188+ - name : Setup armhf chroot
189+ run : |
190+ sudo apt-get update
191+ sudo apt-get install -y debootstrap schroot
192+
193+ sudo debootstrap --arch=armhf bookworm /chroot/armhf http://deb.debian.org/debian
194+
195+ sudo sh -c 'cat > /etc/schroot/chroot.d/armhf.conf << EOF
196+ [armhf]
197+ description=Debian armhf
198+ type=directory
199+ profile=default
200+ directory=/chroot/armhf
201+ users=runner
202+ EOF'
203+
169204 - name : Compiling
170- run : chmod +x project/luajit/scripts/Linux-Building.sh && ./project/luajit/scripts/Linux-Building.sh armv7
205+ run : |
206+ sudo chroot /chroot/armhf /bin/bash -c "
207+ apt-get update && apt-get install -y make gcc git
208+ cd ${{ github.workspace }}
209+ chmod +x project/luajit/scripts/Linux-Building.sh
210+ ./project/luajit/scripts/Linux-Building.sh armv7
211+ "
171212
172213 - name : Upload Artifact
173214 uses : actions/upload-artifact@main
0 commit comments