Skip to content

Commit 16686cb

Browse files
committed
Add gcc binary artifact
1 parent a6b3e98 commit 16686cb

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/main.yml

+22-4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,29 @@ jobs:
2323
ls
2424
mkdir build install
2525
cd build
26-
../gcc/configure --enable-host-shared --enable-languages=jit,c++,lto --disable-bootstrap --disable-multilib --prefix=$(pwd)/../install
26+
../gcc/configure --enable-host-shared --enable-languages=c,jit,c++,lto --disable-bootstrap --disable-multilib --prefix=$(pwd)/../install/usr --libdir=$(pwd)/../install/usr/lib --libexecdir=$(pwd)/../install/usr/lib
2727
make -j4
28-
ls -R
29-
echo "*************************"
30-
tree
28+
make install
29+
30+
- name: Build Debian package
31+
run: |
32+
cd ..
33+
mkdir install/DEBIAN
34+
cat > install/DEBIAN/control << EOF
35+
Package: gcc-13
36+
Version: 13
37+
Architecture: amd64
38+
Maintainer: Antoni Boucher <[email protected]>
39+
Description: gcc 13 for rustc_codegen_gcc CI
40+
EOF
41+
dpkg-deb --root-owner-group --build install
42+
mv install.deb gcc-13.deb
43+
44+
- uses: actions/upload-artifact@v3
45+
with:
46+
name: gcc-13
47+
path: /home/runner/work/gcc/gcc-13.deb
48+
if-no-files-found: error
3149

3250
- uses: actions/upload-artifact@v2
3351
with:

0 commit comments

Comments
 (0)