add symlink for powerpc gcc and linker env

This commit is contained in:
Rohan Sircar 2021-04-29 22:15:52 +05:30 committed by GitHub
parent c4e48e56bc
commit 62be0e0476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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