Skip to content

Commit

Permalink
Build and upload artifact on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Dec 16, 2021
1 parent a68a29f commit 8169963
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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=jit,c++ --disable-bootstrap --disable-multilib --prefix=$(pwd)/../install
make -j4
- uses: actions/upload-artifact@v2
with:
name: libgccjit.so
path: /home/runner/work/gcc/build/gcc/libgccjit.so

0 comments on commit 8169963

Please sign in to comment.