Skip to content

try to fix

try to fix #16

Workflow file for this run

name: Test on qemu targets
on: [push, pull_request]
env:
REGISTRY: ghcr.io
jobs:
prepare-docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
strategy:
fail-fast: true
max-parallel: 1
matrix:
container:
- name: "qemu-ci"
path: "Dockerfile"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/open-s4c/vatomic/${{ matrix.container.name }}
tags: |
type=edge,branch=dev
type=raw,latest
type=sha,format=long
- name: Setup docker buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .github
push: true
file: ${{ matrix.container.path }}
cache-from: type=gha,scope=${{ matrix.container }}
cache-to: type=gha,mode=max,scope=${{ matrix.container }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
#build-args: |
# "VSYNCER_TAG=${{ github.sha }}"
run-tests:
strategy:
matrix:
optimization_level: [ "O1", "O2", "O3" ]
toolchain: [ "armel", "armel8", "armeb", "armeb8", "arm64" ]
config: ["-DVATOMIC_ENABLE_ATOMIC_SC", "-DVATOMIC_ENABLE_ATOMIC_RLX", ""]
flags: [ "" ]
##- OPTIMIZATION_LEVEL: [ "O1", "O2", "O3" ]
## TOOLCHAIN: [ "armel", "armel8", "armeb", "armeb8", "arm64" ]
## VATOMIC_CONFIG: ["-DVATOMIC_ENABLE_ATOMIC_SC", "-DVATOMIC_ENABLE_ATOMIC_RLX", ""]
##- OPTIMIZATION_LEVEL: [ "O1", "O2", "O3" ]
## TOOLCHAIN: [ "x86_64" ]
## ADDITIONAL_FLAGS: [ "-DVSYNC_BUILTINS=ON", "-DVSYNC_BUILTINS=OFF" ]
## VATOMIC_CONFIG: ["-DVATOMIC_ENABLE_ATOMIC_SC", "-DVATOMIC_ENABLE_ATOMIC_RLX", ""]
##- OPTIMIZATION_LEVEL: [ "O1", "O2", "O3" ]
## TOOLCHAIN: [ "arm64_lse" ]
## ADDITIONAL_FLAGS: [ "-DVATOMIC_ENABLE_ARM64_LXE=ON", "-DVATOMIC_ENABLE_ARM64_LXE=OFF" ]
## VATOMIC_CONFIG: ["-DVATOMIC_ENABLE_ATOMIC_SC", "-DVATOMIC_ENABLE_ATOMIC_RLX", ""]
##- OPTIMIZATION_LEVEL: [ "O1", "O2", "O3" ]
## TOOLCHAIN: [ "riscv" ]
runs-on: ubuntu-latest
needs: [ prepare-docker ]
container: ghcr.io/open-s4c/vatomic/qemu-ci:sha-${{ github.sha }}
steps:
- name: Check out to run with the tests
uses: actions/checkout@v4
- name: Configure
run: cmake -S . -Bbuild
-DCMAKE_TOOLCHAIN_FILE=".github/toolchains/${{ matrix.toolchain }}.cmake"
-DCMAKE_C_FLAGS="-${{ matrix.optimization_level }} ${{ matrix.config }} ${{ matrix.flags }}"
- name: Build
run: cmake --build build
- name: Test
run: ctest --test-dir build --output-on-failure
#- name: Upload Report
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: check-report
# path: build/log.csv