build_linux #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build_linux | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Linux x86_64 | |
runs-on: ubuntu-20.04 | |
steps: | |
# Checks-out the repository under $GITHUB_WORKSPACE | |
- uses: actions/checkout@v4 | |
# Runs a set of commands using the runners shell | |
- name: Build-commands | |
run: | | |
cd $GITHUB_WORKSPACE/src | |
chmod u+x ./build_linux.bash | |
./build_linux.bash | |
- name: Upload binary artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: muscle-linux-x64 | |
path: /home/runner/work/muscle/muscle/bin/muscle | |
build-aarch64: | |
name: Linux aarch64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: uraimo/run-on-arch-action@v2 | |
with: | |
arch: aarch64 | |
distro: ubuntu20.04 | |
# githubToken: ${{ github.token }} | |
# dockerRunArgs: | | |
# --volume "${PWD}:/muscle" | |
install: | | |
apt-get update -q -y | |
apt-get install -q -y make g++ file git python3 | |
run: | | |
git config --global --add safe.directory /muscle | |
cd /muscle/src | |
chmod u+x ./build_linux.bash | |
./build_linux.bash | |
- name: Upload binary artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: muscle-linux-aarch64 | |
path: /home/runner/work/muscle/muscle/bin/muscle |