Skip to content

Commit ede16cf

Browse files
committed
Checkout compiler-rt in CI
1 parent 7b31d80 commit ede16cf

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v2
1818

19+
- uses: actions/checkout@v2
20+
with:
21+
repository: llvm/llvm-project
22+
path: llvm
23+
1924
- name: Install packages
2025
run: sudo apt-get install ninja-build ripgrep
2126

@@ -32,10 +37,11 @@ jobs:
3237
echo $(readlink -f gcc-build) > gcc_path
3338
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
3439
35-
- name: Set LIBRARY_PATH
40+
- name: Set env
3641
run: |
3742
echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
3843
echo "LD_LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
44+
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
3945
4046
# https://github.com/actions/cache/issues/133
4147
- name: Fixup owner of ~/.cargo/
@@ -67,7 +73,12 @@ jobs:
6773
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
6874

6975
- name: Build
76+
env:
77+
RUST_COMPILER_RT_ROOT: ${{ env.workspace }}/llvm/compiler-rt
7078
run: |
79+
ls /home/runner/work/rustc_codegen_gcc/rustc_codegen_gcc/llvm
80+
echo Workspace ${{ env.workspace }}
81+
ls ${{ env.workspace }}/llvm
7182
./prepare_build.sh
7283
./build.sh ${{ matrix.features }}
7384
cargo test

0 commit comments

Comments
 (0)