Skip to content

Commit 7f6f8fb

Browse files
committed
Fetch libgccjit.so artifact to use it in CI
1 parent 0bac007 commit 7f6f8fb

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,33 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ${{ matrix.os }}
9+
runs-on: ubuntu-latest
1010

1111
strategy:
1212
fail-fast: false
13-
matrix:
14-
os: [ubuntu-latest, macos-latest]
1513

1614
steps:
1715
- uses: actions/checkout@v2
1816

17+
- name: Download artifact
18+
uses: dawidd6/action-download-artifact@v2
19+
with:
20+
workflow: main.yml
21+
name: libgccjit.so
22+
path: gcc-build
23+
repo: antoyo/gcc
24+
25+
- name: Setup path to libgccjit
26+
run: |
27+
echo $(readlink -f gcc-build) > gcc_path
28+
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
29+
30+
- name: cat
31+
run: cat gcc_path
32+
33+
- name: Set LIBRARY_PATH
34+
run: echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
35+
1936
# https://github.com/actions/cache/issues/133
2037
- name: Fixup owner of ~/.cargo/
2138
# Don't remove the trailing /. It is necessary to follow the symlink.
@@ -25,7 +42,7 @@ jobs:
2542
uses: actions/cache@v1.1.2
2643
with:
2744
path: ~/.cargo/bin
28-
key: cargo-installed-crates2-${{ matrix.os }}
45+
key: cargo-installed-crates2-ubuntu-latest
2946

3047
- name: Cache cargo registry
3148
uses: actions/cache@v1

0 commit comments

Comments
 (0)