Skip to content

Commit 4581640

Browse files
authored
Merge pull request #29 from antoyo/fix/ci
Fix CI
2 parents bb4a5c0 + 9a7fd17 commit 4581640

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,13 @@ jobs:
2222
override: true
2323
components: clippy
2424

25-
- name: Download artifact
26-
uses: dawidd6/action-download-artifact@v2
27-
with:
28-
workflow: main.yml
29-
name: "libgccjit.so"
30-
path: gcc-build
31-
repo: antoyo/gcc
32-
branch: "master"
33-
event: push
34-
search_artifacts: true # Because, instead, the action only check the last job ran and that won't work since we want multiple artifacts.
35-
36-
- name: Setup path to libgccjit
25+
- name: Download and install GCC fork
3726
run: |
38-
echo $(readlink -f gcc-build) > gcc_path
39-
# NOTE: the filename is still libgccjit.so even when the artifact name is different.
40-
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
27+
curl -LO https://github.com/antoyo/gcc/releases/latest/download/gcc-13.deb
28+
sudo dpkg --force-overwrite -i gcc-13.deb
4129
4230
- name: Set env
4331
run: |
44-
echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
45-
echo "LD_LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
4632
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
4733
4834
- name: Cache cargo registry
@@ -69,6 +55,11 @@ jobs:
6955
cargo build --features master
7056
cargo build --examples
7157
58+
- name: Test
59+
run: |
60+
cd examples/factorial
61+
cargo build
62+
7263
- name: clippy
7364
run: |
7465
cargo clippy --all-targets -- -D warnings

0 commit comments

Comments
 (0)