Skip to content

Commit 90baf32

Browse files
Fix CI failure
1 parent 220416c commit 90baf32

File tree

1 file changed

+36
-40
lines changed

1 file changed

+36
-40
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,18 @@ env:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-22.04
16-
1716
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions-rs/toolchain@v1
17+
- uses: actions/checkout@v3
18+
- uses: actions-rs/toolchain@v1
2019
with:
2120
profile: minimal
2221
toolchain: stable
2322
override: true
2423
components: clippy
2524

26-
- name: Download artifact
27-
uses: dawidd6/action-download-artifact@v2
28-
with:
25+
- name: Download artifact
26+
uses: dawidd6/action-download-artifact@v2
27+
with:
2928
workflow: main.yml
3029
name: "libgccjit.so"
3130
path: gcc-build
@@ -34,46 +33,43 @@ jobs:
3433
event: push
3534
search_artifacts: true # Because, instead, the action only check the last job ran and that won't work since we want multiple artifacts.
3635

37-
- name: Setup path to libgccjit
38-
run: |
36+
- name: Setup path to libgccjit
37+
run: |
3938
echo $(readlink -f gcc-build) > gcc_path
4039
# NOTE: the filename is still libgccjit.so even when the artifact name is different.
4140
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
4241
43-
- name: Set env
44-
run: |
45-
echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
46-
echo "LD_LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
47-
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
48-
49-
- name: Set RUST_COMPILER_RT_ROOT
50-
run: echo "RUST_COMPILER_RT_ROOT="${{ env.workspace }}/llvm/compiler-rt >> $GITHUB_ENV
42+
- name: Set env
43+
run: |
44+
echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
45+
echo "LD_LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
46+
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
5147
52-
- name: Cache cargo registry
53-
uses: actions/cache@v3
54-
with:
55-
path: ~/.cargo/registry
56-
key: ${{ runner.os }}-cargo-registry2-${{ hashFiles('**/Cargo.lock') }}
48+
- name: Cache cargo registry
49+
uses: actions/cache@v3
50+
with:
51+
path: ~/.cargo/registry
52+
key: ${{ runner.os }}-cargo-registry2-${{ hashFiles('**/Cargo.lock') }}
5753

58-
- name: Cache cargo index
59-
uses: actions/cache@v3
60-
with:
61-
path: ~/.cargo/git
62-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
54+
- name: Cache cargo index
55+
uses: actions/cache@v3
56+
with:
57+
path: ~/.cargo/git
58+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
6359

64-
- name: Cache cargo target dir
65-
uses: actions/cache@v3
66-
with:
67-
path: target
68-
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
60+
- name: Cache cargo target dir
61+
uses: actions/cache@v3
62+
with:
63+
path: target
64+
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
6965

70-
- name: Build
71-
run: |
72-
cargo build
73-
cargo build --features master
74-
cargo build --examples
66+
- name: Build
67+
run: |
68+
cargo build
69+
cargo build --features master
70+
cargo build --examples
7571
76-
- name: clippy
77-
run: |
78-
cargo clippy --all-targets -- -D warnings
79-
cargo clippy --all-targets --features master -- -D warnings
72+
- name: clippy
73+
run: |
74+
cargo clippy --all-targets -- -D warnings
75+
cargo clippy --all-targets --features master -- -D warnings

0 commit comments

Comments
 (0)