Skip to content

Commit

Permalink
Add RISC-V architecture. Update to use ubuntu-latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-trinh committed Sep 15, 2024
1 parent b228a6d commit 6b4562e
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
build-coverage:
runs-on: ubuntu-latest

steps:
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/other-arch-isolated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ concurrency:
cancel-in-progress: true

jobs:
build-other-architectures:
build-other-architectures-isolated:
# The host should always be linux
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
name: Build on ${{ matrix.distro }} ${{ matrix.arch }} ${{ matrix.endianness }}

# Run steps on a matrix of different arch/distro combinations
Expand All @@ -29,19 +29,22 @@ jobs:
# distro: bullseye
# target: ARMV6
- arch: armv7
distro: ubuntu22.04
distro: ubuntu_latest
target: ARMV7
endianness: (Little Endian)
- arch: aarch64
distro: ubuntu22.04 #fedora_latest
target: ARMV8
distro: ubuntu_latest
endianness: (Little Endian)
- arch: riscv64
distro: ubuntu_latest
target: RISC-V
endianness: (Little Endian)
- arch: ppc64le
distro: ubuntu22.04
distro: ubuntu_latest
target: POWER8
endianness: (Little Endian)
- arch: s390x
distro: ubuntu22.04
distro: ubuntu_latest
target: Z13
endianness: (Big Endian)

Expand All @@ -50,7 +53,7 @@ jobs:
uses: actions/checkout@v4

- name: Run on arch
uses: uraimo/run-on-arch-action@v2.2.1
uses: uraimo/run-on-arch-action@v2.7.2
with:
githubToken: ${{ github.token }}
arch: ${{ matrix.arch }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/other-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
build-other-architectures:
# The host should always be linux
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: Build on ${{ matrix.distro }} ${{ matrix.arch }} ${{ matrix.endianness }}

# Run steps on a matrix of 3 arch/distro combinations
Expand All @@ -32,14 +32,14 @@ jobs:
# distro: ubuntu20.04
# target: ARMV7
- arch: aarch64
distro: ubuntu20.04 #fedora_latest
distro: ubuntu_latest
target: ARMV8
endianness: (Little Endian)
# - arch: ppc64le
# distro: ubuntu20.04
# target: POWER8
- arch: s390x
distro: ubuntu20.04
distro: ubuntu_latest
target: Z13
endianness: (Big Endian)

Expand All @@ -48,7 +48,7 @@ jobs:
uses: actions/checkout@v4

- name: Run on arch
uses: uraimo/run-on-arch-action@v2.1.1
uses: uraimo/run-on-arch-action@v2.7.2
with:
githubToken: ${{ github.token }}
arch: ${{ matrix.arch }}
Expand All @@ -60,7 +60,7 @@ jobs:
apt-get update && apt-get install -y lsb-release git build-essential cmake
lsb_release -a
apt-get update && apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev gfortran liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev
apt-get update && apt-get install -y libx11-dev libdc1394-dev libv4l-dev gfortran liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev
apt-get update && apt-get install -y libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev
git clone --depth 1 https://github.com/lagadic/visp-images ${HOME}/visp-images
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ubuntu-3rdparty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ concurrency:
cancel-in-progress: true

jobs:
build-ubuntu-dep-apt:
build-ubuntu-dep-apt-3rdparty:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-latest]
compiler: [ {CC: /usr/bin/gcc-10, CXX: /usr/bin/g++-10}, {CC: /usr/bin/clang, CXX: /usr/bin/clang++} ]

steps:
Expand All @@ -35,12 +35,12 @@ jobs:
- name: Print compiler information
run: dpkg --list | grep compiler

- name: Install dependencies for ubuntu 18.04 and 20.04
if: matrix.os != 'ubuntu-22.04'
- name: Install dependencies for ubuntu 20.04
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Install dependencies for ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
- name: Install dependencies for ubuntu-latest
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Clone camera_localization
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ubuntu-contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ concurrency:
cancel-in-progress: true

jobs:
build-ubuntu-dep-apt:
build-ubuntu-dep-apt-contrib:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-latest]
compiler: [ {CC: /usr/bin/gcc-10, CXX: /usr/bin/g++-10}, {CC: /usr/bin/clang, CXX: /usr/bin/clang++} ]

steps:
Expand All @@ -36,11 +36,11 @@ jobs:
run: dpkg --list | grep compiler

- name: Install dependencies for ubuntu 20.04
if: matrix.os != 'ubuntu-22.04'
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Install dependencies for ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
- name: Install dependencies for ubuntu-latest
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Clone visp_contrib
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ubuntu-dep-apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-latest]
compiler: [ {CC: /usr/bin/gcc-9, CXX: /usr/bin/g++-9}, {CC: /usr/bin/gcc-10, CXX: /usr/bin/g++-10}, {CC: /usr/bin/clang, CXX: /usr/bin/clang++} ]
standard: [ 98, 11, 17 ]

Expand All @@ -37,11 +37,11 @@ jobs:
run: dpkg --list | grep compiler

- name: Install dependencies for ubuntu 20.04
if: matrix.os != 'ubuntu-22.04'
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Install dependencies for ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
- name: Install dependencies for ubuntu-latest
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Clone visp-images
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/ubuntu-dep-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-latest]

steps:
- name: Checkout repository
Expand All @@ -36,15 +36,10 @@ jobs:
run: lsb_release -a

- name: Install dependencies for ubuntu 20.04
if: matrix.os != 'ubuntu-22.04'
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update && sudo apt-get install -y libdc1394-22-dev
- name: Install dependencies for ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update && sudo apt-get install -y libdc1394-dev
- name: Install common dependencies for ubuntu
run: |
sudo apt-get update
Expand All @@ -53,8 +48,8 @@ jobs:
sudo apt-get install -y mesa-common-dev mesa-utils freeglut3-dev libflann-dev libboost-all-dev
sudo apt-get install -y nlohmann-json3-dev
- name: Install dependencies for ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
- name: Install dependencies for ubuntu-latest
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev gfortran liblapack-dev libeigen3-dev
sudo apt-get update && sudo apt-get install -y libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-isolated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: true

jobs:
build-ubuntu-dep-apt:
build-ubuntu-dep-apt-isolated:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ubuntu-ustk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ concurrency:
cancel-in-progress: true

jobs:
build-ubuntu-dep-apt:
build-ubuntu-dep-apt-ustk:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-latest]

steps:
- name: Checkout repository
Expand All @@ -35,11 +35,11 @@ jobs:
run: dpkg --list | grep compiler

- name: Install dependencies for ubuntu 20.04
if: matrix.os != 'ubuntu-22.04'
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-22-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Install dependencies for ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
- name: Install dependencies for ubuntu-latest
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y libx11-dev libdc1394-dev libv4l-dev liblapack-dev libopenblas-dev libeigen3-dev libopencv-dev nlohmann-json3-dev

- name: Clone visp-images
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-venv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: true

jobs:
build-ubuntu-dep-apt:
build-ubuntu-dep-apt-venv:
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-clang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
build-windows-clang:
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
cancel-in-progress: true

jobs:
visp-conda:
build-windows-conda:
name: ${{ matrix.os }} ${{ matrix.compiler }} - Python ${{ matrix.python-version }} ${{ matrix.build_type }} ${{ matrix.cxx_options }}
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
name: check-windows-conda

needs:
- visp-conda
- build-windows-conda

runs-on: Ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-msvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
build-windows-msvc:
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down

0 comments on commit 6b4562e

Please sign in to comment.