Skip to content

Commit

Permalink
WIP: gh/workflows: Add arm64 runner
Browse files Browse the repository at this point in the history
Signed-off-by: Martynas Pumputis <m@lambda.lt>
  • Loading branch information
brb committed Feb 3, 2025
1 parent 3a55ee3 commit 037c695
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:

build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

Expand All @@ -27,28 +27,28 @@ jobs:
- name: Generate and build
run: |
make release
tar xfv release/pwru-linux-amd64.tar.gz
ARCHS=arm64 make release
tar xfv release/pwru-linux-arm64.tar.gz
- name: Store executable
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b
with:
name: pwru
path: pwru

- name: Build test-app
run: |
cd test-app
go build .
# - name: Build test-app
# run: |
# cd test-app
# go build .

- name: Store test-app
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b
with:
name: test-app
path: test-app/test-app
# - name: Store test-app
# uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b
# with:
# name: test-app
# path: test-app/test-app

test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
name: Test
needs: build
strategy:
Expand All @@ -65,11 +65,11 @@ jobs:
name: pwru
path: pwru

- name: Retrieve stored test-app executable
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: test-app
path: test-app
# - name: Retrieve stored test-app executable
# uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
# with:
# name: test-app
# path: test-app

- name: Derive kernel version
id: kernel
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VERSION=$(shell git describe --tags --always)
LIBPCAP_ARCH ?= x86_64-unknown-linux-gnu
# For compiling libpcap and CGO
CC ?= gcc
ARCHS ?= amd64 arm64
ARCHS ?= arm64

TEST_TIMEOUT ?= 5s
.DEFAULT_GOAL := pwru
Expand Down

0 comments on commit 037c695

Please # to comment.