-
Notifications
You must be signed in to change notification settings - Fork 130
40 lines (33 loc) · 1.06 KB
/
tests-arm64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: ARM Linux Simulation
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
simulate-arm-linux:
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Docker on macOS
uses: douglascamata/setup-docker-macos-action@v1-alpha
- name: Pull ARM64 Docker image
run: |
docker pull --platform linux/arm64 ubuntu:20.04
- name: Run ARM64 Docker container
run: |
docker run --privileged --rm --platform linux/arm64 -v $(pwd):/workspace -w /workspace ubuntu:20.04 /bin/bash -c "
apt-get update &&
apt-get install -y qemu-user-static binfmt-support &&
# Your ARM-specific commands go here
echo 'Running on ARM architecture'
"
- name: Run your tasks in the ARM container
run: |
docker run --privileged --rm --platform linux/arm64 -v $(pwd):/workspace -w /workspace ubuntu:20.04 /bin/bash -c "
# Execute your test commands or build scripts here
./your-script.sh
"