add symlink for powerpc gcc and linker env
This commit is contained in:
parent
c4e48e56bc
commit
62be0e0476
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -124,12 +124,16 @@ jobs:
|
|||||||
target
|
target
|
||||||
key: ${{ runner.os }}-powerpc64-unknown-linux-gnu-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-powerpc64-unknown-linux-gnu-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- name: Install PowerPC gcc
|
- name: Install PowerPC gcc
|
||||||
run: sudo apt-get install -y gcc-powerpc64-linux-gnu
|
run: |
|
||||||
|
sudo apt-get install -y gcc-powerpc64-linux-gnu
|
||||||
|
sudo ln -s /usr/bin/powerpc64-linux-gnu-gcc-7 /usr/bin/powerpc-linux-gnu-gcc
|
||||||
- name: Compile
|
- name: Compile
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --target=powerpc64-unknown-linux-gnu
|
args: --release --target=powerpc64-unknown-linux-gnu
|
||||||
|
env:
|
||||||
|
RUSTFLAGS: "-C linker=powerpc64-linux-gnu-gcc-7"
|
||||||
|
|
||||||
publish-docker:
|
publish-docker:
|
||||||
name: Build and Publish Docker Image
|
name: Build and Publish Docker Image
|
||||||
|
Loading…
Reference in New Issue
Block a user