Skip to content

Create c-cpp.yml

Create c-cpp.yml #2

Workflow file for this run

name: C/C++ CI
on: [push, pull_request]
jobs:
build-alpine:
timeout-minutes: 75
runs-on: ubuntu-22.04
strategy:
matrix:
config:
- {arch: x86_64}
- {arch: aarch64}
- {arch: armhf}
- {arch: armv7}
- {arch: ppc64le}
- {arch: s390x}
steps:
- name: Setup Alpine Linux
uses: jirutka/setup-alpine@v1
with:
arch: ${{ matrix.config.arch }}
- name: Install dependencies
shell: alpine.sh --root {0}
run: |
apk add git cmake gcc g++ make
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Build RandomX
shell: alpine.sh {0}
run: |
mkdir build
cd build
cmake ..
make -j$(nproc)
ls -laR
- name: Run tests
shell: alpine.sh {0}
run: |
build/randomx-tests