From edc3de893f28c6eccf99e2c2393d0c1ce595ca56 Mon Sep 17 00:00:00 2001 From: Jakub Dzikowski Date: Tue, 24 Sep 2024 17:05:08 +0200 Subject: [PATCH] Test arm64 architecture in CI Signed-off-by: Jakub Dzikowski --- .github/workflows/test-on-push.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/test-on-push.yml b/.github/workflows/test-on-push.yml index f6eda5a0..84409103 100644 --- a/.github/workflows/test-on-push.yml +++ b/.github/workflows/test-on-push.yml @@ -40,6 +40,40 @@ jobs: - name: Lint run: npm run lint && ./lint.sh + test-arm64: + runs-on: macos-14 + steps: + + - name: Ensure Apple M1 architecture + run: | + uname -a + if [ "$(uname -m)" = "arm64" ]; then + echo "Detected Apple M1 architecture" + else + echo "Not detected Apple M1 architecture" + exit 1 + fi + + - name: Check out repository code + uses: actions/checkout@v2 + + - name: Build Fablo + run: | + npm install && \ + npm run build && \ + ./fablo-build.sh + + - name: Test simple network + run: e2e-network/docker/test-01-simple.sh + + - uses: actions/upload-artifact@v4 + if: always() + with: + name: test-arm64 + path: | + e2e-network/docker/test-01-simple.sh.logs/* + e2e-network/docker/test-01-simple.sh.tmpdir/fablo-target/**/* + # test-k8: # needs: test-main # runs-on: ubuntu-latest