diff options
Diffstat (limited to '')
| -rw-r--r-- | .cargo/config.toml | 7 | ||||
| -rw-r--r-- | .github/workflows/build.yml | 3 | ||||
| -rw-r--r-- | .github/workflows/lint.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 2 |
4 files changed, 5 insertions, 9 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml index 6950c4a..f678171 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,10 +2,3 @@ dev = "hot --features iced/hot" lint = "clippy --no-deps -- -D warnings" lint-all = "clippy --no-deps -- -D clippy::pedantic" - -[target.x86_64-unknown-linux-gnu] -linker = "clang" -rustflags = ["-C", "link-arg=-fuse-ld=mold"] - -# [build] -# rustflags = ["-Z", "threads=6"] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ded4bfb..45cba25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,8 @@ on: jobs: build: runs-on: ubuntu-latest + env: + RUSTFLAGS: -C linker=clang -C link-arg=-fuse-ld=mold strategy: fail-fast: false matrix: @@ -22,6 +24,7 @@ jobs: sudo apt-get -qq update sudo apt-get install -y libxkbcommon-dev clang mold - uses: actions/cache@v4 + if: matrix.rust-version != 'nightly' with: path: | ~/.cargo/bin/ diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fa3fa20..2577f45 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,7 +12,7 @@ jobs: run: | export DEBIAN_FRONTED=noninteractive sudo apt-get -qq update - sudo apt-get install -y libxkbcommon-dev clang mold + sudo apt-get install -y libxkbcommon-dev - uses: actions/cache@v4 with: path: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c766584..a1c3ea7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: test: runs-on: ubuntu-latest env: - RUSTFLAGS: --deny warnings + RUSTFLAGS: -C linker=clang -C link-arg=-fuse-ld=mold --deny warnings steps: - uses: hecrj/setup-rust-action@v2 - uses: actions/checkout@master |
