From: Joshua Simmons Date: Sat, 29 Oct 2022 15:47:44 +0000 (+0200) Subject: Use fully qualified path to mold binary X-Git-Url: https://git.nega.tv//gitweb.cgi?a=commitdiff_plain;h=f2f2c78ab6ace16708da0a8f344f67e940614dc8;p=josh%2Fnarcissus Use fully qualified path to mold binary Load it into the /usr/ instead of /usr/local on github actions so the path is the same as when installed as a regular package. --- diff --git a/.cargo/config.toml b/.cargo/config.toml index 5c0c649..2c3dbcd 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,3 +1,3 @@ [target.x86_64-unknown-linux-gnu] linker = "clang" -rustflags = ["-C", "link-arg=-fuse-ld=mold"] \ No newline at end of file +rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fb1fb41..b6d4ca4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,7 +19,14 @@ jobs: run: | sudo apt-get update sudo apt-get install libsdl2-dev clang llvm - - uses: rui314/setup-mold@v1 + - name: install_mold + run: | + version=$(wget -q -O- https://api.github.com/repos/rui314/mold/releases/latest | jq -r .tag_name | sed 's/^v//'); true + echo "mold $version" + wget -q -O- https://github.com/rui314/mold/releases/download/v$version/mold-$version-$(uname -m)-linux.tar.gz | sudo tar -C /usr/ --strip-components=1 -xzf - + shell: bash + if: runner.os == 'linux' + - uses: actions/checkout@v3 - name: Build run: cargo build --verbose