forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (50 loc) · 1.58 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Install mpfr
run: sudo apt-get install gcc-10 libmpfr-dev libmpc-dev
- name: Build libgccjit
run: |
cd ..
ls
mkdir build install
cd build
../gcc/configure --enable-host-shared --enable-languages=c,jit,lto --disable-bootstrap --disable-multilib --prefix=$(pwd)/../install/usr --libdir=$(pwd)/../install/usr/lib --libexecdir=$(pwd)/../install/usr/lib
make -j4
make install
- name: Build Debian package
run: |
cd ..
mkdir install/DEBIAN
cat > install/DEBIAN/control << EOF
Package: gcc-13
Version: 13
Architecture: amd64
Maintainer: Antoni Boucher <[email protected]>
Description: gcc 13 for rustc_codegen_gcc CI
EOF
dpkg-deb --root-owner-group --build install
mv install.deb gcc-13.deb
- uses: actions/upload-artifact@v3
with:
name: gcc-13
path: /home/runner/work/gcc/gcc-13.deb
if-no-files-found: error
- uses: actions/upload-artifact@v2
with:
name: libgccjit.so
path: |
/home/runner/work/gcc/build/gcc/libgccjit.so
/home/runner/work/gcc/build/gcc/lto1
/home/runner/work/gcc/build/gcc/liblto_plugin.so
/home/runner/work/gcc/build/gcc/lto-wrapper
/home/runner/work/gcc/build/gcc/crtbeginS.o
/home/runner/work/gcc/build/gcc/crtendS.o