forked from accellera-official/systemc
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.33 KB
/
cmake.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
41
42
43
44
45
name: cmake
on:
push:
pull_request:
jobs:
build_ubuntu:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
version: [20.04, 22.04]
platform: [linux/amd64, linux/arm64]
steps:
- name: Install qemu-user-static
run: |
if [[ "${{ matrix.platform }}" == "linux/arm64" ]]; then
sudo apt-get update && sudo apt-get install -y qemu-user-static
fi
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
docker buildx build --platform ${{ matrix.platform }} -t systemc_test --build-arg UBUNTU_VERSION=${{ matrix.version }} -f docker/ubuntu.dockerfile .
docker run systemc_test
build_almalinux:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
version: [8, 9]
platform: [linux/amd64, linux/arm64]
steps:
- name: Install qemu-user-static
run: |
if [[ "${{ matrix.platform }}" == "linux/arm64" ]]; then
sudo apt-get update && sudo apt-get install -y qemu-user-static
fi
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
docker buildx build --platform ${{ matrix.platform }} -t systemc_test --build-arg ALMA_VERSION=${{ matrix.version }} -f docker/alma.dockerfile .
docker run systemc_test