diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbb83a4..dcac8d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,9 +57,21 @@ jobs: - uses: coursier/setup-action@v1.3 with: apps: "" - - - run: .github/scripts/build-linux-aarch64.sh - + - name: Build Linux aarch64 launcher + run: | + set -euv + export DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" + mkdir -p artifacts + mkdir -p utils + cp "$(cs get https://github.com/coursier/coursier/releases/download/v2.0.16/cs-aarch64-pc-linux)" utils/cs + chmod +x utils/cs + cp "$DIR/build-linux-aarch64-from-docker.sh" utils/ + docker run $(if test -t 1; then echo "-it"; fi) --rm \ + --volume "$(pwd):/data" \ + -w /data \ + -e "CI=$CI" \ + ubuntu:20.04 \ + /data/utils/build-linux-aarch64-from-docker.sh - uses: actions/upload-artifact@v3.1.2 with: name: linux-launcher