You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to build the project on the aarch64 platform, but the following error occurs:
Weird, the platform I set is aarch64, but it shows x86_64 here?
Below is my workflow:
on: [push, pull_request]jobs:
build_job:
# The host should always be linuxruns-on: ubuntu-22.04name: Build on ${{ matrix.distro }} ${{ matrix.arch }}# Run steps on a matrix of 4 arch/distro combinationsstrategy:
matrix:
include:
- arch: aarch64distro: ubuntu22.04steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2name: Build artifactid: buildwith:
arch: aarch64distro: ubuntu22.04# Not required, but speeds up buildsgithubToken: ${{ github.token }}# Create an artifacts directorysetup: | echo "my info: " `uname -a`# Mount the artifacts directory as /artifacts in the containerdockerRunArgs: | -v /usr/bin/:/usr/bin/install: | echo "my info: " `uname -a` apt-get update && \ apt-get install -y --no-install-recommends libelf1 libelf-dev \ zlib1g-dev clang llvm libclang-13-dev make cmake git cargo wget tar curl && \ apt-get install -y --no-install-recommends ca-certificates && \ update-ca-certificates && \ apt-get clean && \ curl https://sh.rustup.rs -sSf | sh -s -- -y && \ rm -rf /var/lib/apt/lists/* mkdir /src && cd /src git clone https://github.com/eunomia-bpf/eunomia-bpf.git && cd eunomia-bpf git submodule update --init --recursive --remote echo "my info: get the whole repo!" cd ecli && make build cp /src/eunomia-bpf/ecli/build/bin/Release/ecli /usr/bin/# Pass some environment variables to the containerenv: | # YAML, but pipe character is necessary artifact_name: git-${{ matrix.distro }}_${{ matrix.arch }}# The shell to run commands with in the containershell: /bin/sh# Produce a binary artifact and place it in the mounted volumerun: | ls -af /usr/bin/ecli
The text was updated successfully, but these errors were encountered:
Setup runs on the x86 host, so what you see is correct, that's github CI runner.
I'm not so sure about that mounting of /usr/bin/ that you do in dockerRunArgs, I would use a separate directory for artifacts.
If you are building something run: is the right section to do it.
Other than this I don' seen any obvious errors in that yaml, it should work, please post a link to the job if it's still broken after the modifications above.
In run-on-arch-action, are run and setup both run in the ci environment (x86_64)? And only install is run in the user-specified environment (e.g. aarch64)?
I want to build the project on the aarch64 platform, but the following error occurs:
Weird, the platform I set is aarch64, but it shows x86_64 here?
Below is my workflow:
The text was updated successfully, but these errors were encountered: