Skip to content

Commit

Permalink
Run tests in arm64
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
  • Loading branch information
Paulo Gomes committed Jan 27, 2022
1 parent 4207d6f commit cddb9b1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,23 @@ jobs:
run: make test
- name: Verify
run: make verify

test-linux-arm64:
# Hosted on Equinix
# Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners
runs-on: [self-hosted, Linux, ARM64, equinix]
steps:
- name: checkout
uses: actions/checkout@v2
- name: Restore go cache
uses: actions/cache@v1
with:
# the ff is mounted into the container as ~/go/pkg/mod
path: /home/runner/work/_temp/_github_home/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: make test
- name: Verify
run: make verify
6 changes: 4 additions & 2 deletions hack/extract-libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ function setup() {
NEW_DIR="$(/bin/pwd)/build/libgit2"
INSTALLED_DIR="/usr/local/${DIR}"

mkdir -p "./build"

# Make a few movements to account for the change in
# behaviour in tar between MacOS and Linux
mv "local/${DIR}" "libgit2"
mv "local/${DIR}/" "libgit2"
rm -rf "local"
mv "libgit2" "./build/"
mv "libgit2/" "./build/"

# Update the prefix paths included in the .pc files.
# This will make it easier to update to the location in which they will be used.
Expand Down

0 comments on commit cddb9b1

Please sign in to comment.