Skip to content

Use BSD 3-clause license #27

Use BSD 3-clause license

Use BSD 3-clause license #27

Workflow file for this run

name: Test on Linux distros
on: [push]
jobs:
arch-20221120:
name: Arch 20230430.0.146624
runs-on: ubuntu-latest
container:
image: docker://archlinux:base-devel-20230430.0.146624
steps:
- name: Pacman Update
run: |
pacman-key --init
pacman-key --populate
pacman -Sy --noconfirm archlinux-keyring
pacman -Syu --noconfirm
- name: Install Deps
run: |
pacman -S --noconfirm openssh git make cmake gcc
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Checkout
run: |
git clone --recurse-submodules git@github.com:${{ github.repository }}.git repo
- name: Compile
run: |
cd repo
make main-dbg test-dbg
- name: Run Test
run: |
cd repo
./build/test.elf
debian-11:
name: Debian 11
runs-on: ubuntu-latest
container:
image: docker://debian:bullseye
steps:
- name: APT Update
run: |
apt-get -qq update
- name: Install Deps
run: |
apt-get -qq -y install git make cmake gcc
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Checkout
run: |
git clone --recurse-submodules git@github.com:${{ github.repository }}.git repo
- name: Compile
run: |
cd repo
make main-dbg test-dbg
- name: Run Test
run: |
cd repo
./build/test.elf
fedora-37:
name: Fedora 37
runs-on: ubuntu-latest
container:
image: docker://fedora:37
steps:
- name: DNF Update
run: |
dnf -q check-update || code=$?; if [ $code -ne 0 or $code -ne 100 ]; then exit $code; fi
- name: Install Deps
run: |
dnf -q -y install git make cmake gcc libasan
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Checkout
run: |
git clone --recurse-submodules git@github.com:${{ github.repository }}.git repo
- name: Compile
run: |
cd repo
make main-dbg test-dbg
- name: Run Test
run: |
cd repo
./build/test.elf
opensuse-leap-15-4:
name: openSUSE Leap 15.4
runs-on: ubuntu-latest
container:
image: docker://opensuse/leap:15.4
steps:
- name: Zypper Update
run: |
zypper -nq update
- name: Install Deps
run: |
zypper -nq install git make cmake gcc11 openssh
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Checkout
run: |
git clone --recurse-submodules git@github.com:${{ github.repository }}.git repo
- name: Compile
run: |
cd repo
make main-dbg test-dbg
- name: Run Test
run: |
cd repo
./build/test.elf