Skip to content

Commit ad92c62

Browse files
committed
Build and upload artifact on GitHub Actions
1 parent 497df72 commit ad92c62

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/main.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: false
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Install mpfr
18+
run: sudo apt-get install gcc-10 libmpfr-dev libmpc-dev
19+
20+
- name: Build libgccjit
21+
run: |
22+
cd ..
23+
ls
24+
mkdir build install
25+
cd build
26+
../gcc/configure --enable-host-shared --enable-languages=jit,c++ --disable-bootstrap --disable-multilib --prefix=$(pwd)/../install
27+
make -j4
28+
29+
- uses: actions/upload-artifact@v2
30+
with:
31+
name: libgccjit.so
32+
path: /home/runner/work/gcc/build/gcc/libgccjit.so

0 commit comments

Comments
 (0)