Skip to content

Commit

Permalink
Merge pull request sysprog21#306 from sysprog21/ci-host-arm64
Browse files Browse the repository at this point in the history
CI: Enable Arm64 host
  • Loading branch information
jserv committed Dec 23, 2023
2 parents c919d7c + 45e3c47 commit b986673
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: CI
on: [push, pull_request]

jobs:
rv32emu:
host-x64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install-dependencies
run: |
sudo apt-get update
sudo apt-get install libsdl2-dev libsdl2-mixer-dev
sudo apt-get update -q -y
sudo apt-get install -q -y libsdl2-dev libsdl2-mixer-dev
.ci/riscv-toolchain-install.sh
shell: bash
- name: default build
Expand All @@ -35,6 +35,27 @@ jobs:
- name: JIT test
run: |
make ENABLE_JIT=1 clean check
host-arm64:
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v4
- name: build artifact
# The GitHub Action for non-x86 CPU
# https://github.com/uraimo/run-on-arch-action
uses: uraimo/run-on-arch-action@v2.6.0
with:
arch: aarch64
distro: ubuntu22.04
install: |
apt-get update -q -y
apt-get install -q -y git build-essential libsdl2-dev libsdl2-mixer-dev
run: |
git config --global --add safe.directory /home/runner/work/rv32emu/rv32emu
make
make check
coding-style:
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit b986673

Please sign in to comment.