From 86c56fbc4601e4f6de15c2ebd96831704ce7e9bf Mon Sep 17 00:00:00 2001 From: Paulo Matos Date: Mon, 20 Jul 2020 16:22:50 +0200 Subject: [PATCH] Initial workflow for the ARM64 runner (#25) Introduces a workflow for an ARM64 self-hosted runner. original commit: bd5ae74834108079a485c5f3e78a7eb73fd4bcd1 --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 742c8e0840..235d4e9b91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,3 +44,41 @@ jobs: run: .github/scripts/build.sh - name: Test Chez run: .github/scripts/test.sh + + build-arm64: + runs-on: [self-hosted, ARM64, Linux] + container: + image: racket/racket-ci:latest + options: --init + + env: + MACH: tarm64le + + steps: + - name: Create Racket Temp Directory + run: mkdir /tmp/racket + - name: Build Racket CGC + working-directory: /tmp/racket + run: | + git clone --depth=1 https://github.com/racket/racket + cd racket/racket/src + ./configure --prefix=/usr --enable-cgcdefault --disable-docs --disable-cify + export cpus=$(nproc) + make -l $cpus -j $((cpus+1)) + make -j $((cpus+1)) install + cd + rm -Rf /tmp/racket + raco pkg install -i --auto --skip-installed cs-bootstrap + - name: Checkout ChezScheme + uses: actions/checkout@v2 + with: + submodules: 'recursive' + fetch-depth: 100 + - name: Build bootfiles + run: racket -l cs-bootstrap + - name: Build Chez + run: | + ./configure -m=$MACH + make -j$(($(nproc)+1)) -l$(nproc) + - name: Test Chez + run: .github/scripts/test.sh