Skip to content

Commit cddb9b1

Browse files
author
Paulo Gomes
committed
Run tests in arm64
Signed-off-by: Paulo Gomes <[email protected]>
1 parent 4207d6f commit cddb9b1

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/build.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,23 @@ jobs:
2727
run: make test
2828
- name: Verify
2929
run: make verify
30+
31+
test-linux-arm64:
32+
# Hosted on Equinix
33+
# Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners
34+
runs-on: [self-hosted, Linux, ARM64, equinix]
35+
steps:
36+
- name: checkout
37+
uses: actions/checkout@v2
38+
- name: Restore go cache
39+
uses: actions/cache@v1
40+
with:
41+
# the ff is mounted into the container as ~/go/pkg/mod
42+
path: /home/runner/work/_temp/_github_home/go/pkg/mod
43+
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
44+
restore-keys: |
45+
${{ runner.os }}-go-
46+
- name: Run tests
47+
run: make test
48+
- name: Verify
49+
run: make verify

hack/extract-libraries.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ function setup() {
2525
NEW_DIR="$(/bin/pwd)/build/libgit2"
2626
INSTALLED_DIR="/usr/local/${DIR}"
2727

28+
mkdir -p "./build"
29+
2830
# Make a few movements to account for the change in
2931
# behaviour in tar between MacOS and Linux
30-
mv "local/${DIR}" "libgit2"
32+
mv "local/${DIR}/" "libgit2"
3133
rm -rf "local"
32-
mv "libgit2" "./build/"
34+
mv "libgit2/" "./build/"
3335

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

0 commit comments

Comments
 (0)