Skip to content

Commit

Permalink
add riscv64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Dec 21, 2022
1 parent bc503dc commit ab3d65f
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/advanced-example.yml
Expand Up @@ -15,6 +15,8 @@ jobs:
distro: ubuntu18.04
- arch: ppc64le
distro: alpine_latest
- arch: riscv64
distro: ubuntu_latest
- arch: s390x
distro: fedora_latest
- arch: armv7
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -21,6 +21,8 @@ jobs:
distro: buster
- arch: armv7
distro: jessie
- arch: riscv64
distro: ubuntu20.04
- arch: s390x
distro: stretch
- arch: armv7
Expand Down
4 changes: 4 additions & 0 deletions Dockerfiles/Dockerfile.riscv64.alpine_latest
@@ -0,0 +1,4 @@
FROM riscv64/alpine:latest

COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
4 changes: 4 additions & 0 deletions Dockerfiles/Dockerfile.riscv64.ubuntu20.04
@@ -0,0 +1,4 @@
FROM riscv64/ubuntu:20.04

COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
4 changes: 4 additions & 0 deletions Dockerfiles/Dockerfile.riscv64.ubuntu22.04
@@ -0,0 +1,4 @@
FROM riscv64/ubuntu:22.04

COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
4 changes: 4 additions & 0 deletions Dockerfiles/Dockerfile.riscv64.ubuntu_devel
@@ -0,0 +1,4 @@
FROM riscv64/ubuntu:devel

COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
4 changes: 4 additions & 0 deletions Dockerfiles/Dockerfile.riscv64.ubuntu_latest
@@ -0,0 +1,4 @@
FROM riscv64/ubuntu:latest

COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
4 changes: 4 additions & 0 deletions Dockerfiles/Dockerfile.riscv64.ubuntu_rolling
@@ -0,0 +1,4 @@
FROM riscv64/ubuntu:rolling

COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -8,7 +8,7 @@ A GitHub Action that executes commands on non-x86 CPU architecture (armv6, armv7

This action requires three input parameters:

* `arch`: CPU architecture: `armv6`, `armv7`, `aarch64`, `s390x`, or `ppc64le`. See [Supported Platforms](#supported-platforms) for the full matrix.
* `arch`: CPU architecture: `armv6`, `armv7`, `aarch64`, `riscv64`, `s390x`, or `ppc64le`. See [Supported Platforms](#supported-platforms) for the full matrix.
* `distro`: Linux distribution name: `ubuntu16.04`, `ubuntu18.04`, `ubuntu20.04`, `bullseye`, `buster`, `stretch`, `jessie`, `fedora_latest`, `alpine_latest` or `archarm_latest`. See [Supported Platforms](#supported-platforms) for the full matrix.
* `run`: Shell commands to execute in the container.

Expand Down Expand Up @@ -152,7 +152,8 @@ This table details the valid `arch`/`distro` combinations:
| armv6 | jessie, stretch, buster, bullseye, alpine_latest |
| armv7 | jessie, stretch, buster, bullseye, ubuntu16.04, ubuntu18.04, ubuntu20.04, ubuntu22.04, ubuntu_latest, ubuntu_rolling, ubuntu_devel, fedora_latest, alpine_latest, archarm_latest |
| aarch64 | stretch, buster, bullseye, ubuntu16.04, ubuntu18.04, ubuntu20.04, ubuntu22.04, ubuntu_latest, ubuntu_rolling, ubuntu_devel, fedora_latest, alpine_latest, archarm_latest |
| s390x | jessie, stretch, buster, bullseye, ubuntu16.04, ubuntu18.04, ubuntu20.04, ubuntu22.04, ubuntu_latest, ubuntu_rolling, ubuntu_devel, fedora_latest, alpine_latest |
| riscv64 | jessie, stretch, buster, bullseye, ubuntu20.04, ubuntu22.04, ubuntu_latest, ubuntu_rolling, ubuntu_devel, fedora_latest, alpine_latest |
| s390x | ubuntu16.04, ubuntu18.04, ubuntu20.04, ubuntu22.04, ubuntu_latest, ubuntu_rolling, ubuntu_devel, alpine_latest |
| ppc64le | jessie, stretch, buster, bullseye, ubuntu16.04, ubuntu18.04,ubuntu20.04, ubuntu22.04, ubuntu_latest, ubuntu_rolling, ubuntu_devel, fedora_latest, alpine_latest |


Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -6,7 +6,7 @@ description: 'Run commands in a Linux container with a specific CPU architecture
author: 'Umberto Raimondi, Elijah Shaw-Rutschman'
inputs:
arch:
description: 'CPU architecture: armv6, armv7, aarch64, s390x, ppc64le.'
description: 'CPU architecture: armv6, armv7, aarch64, riscv64, s390x, ppc64le.'
required: false
default: 'aarch64'
distro:
Expand Down

0 comments on commit ab3d65f

Please sign in to comment.