mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-25 14:17:41 +00:00
ef1541f7a2
also remove python2 from latest ubuntu as no more found doas test is enabled only for latest
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
name:
|
|
💀 Linux Tomb
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'doc/**'
|
|
- 'extras/portable/**'
|
|
- '*.md'
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'doc/**'
|
|
- 'extras/portable/**'
|
|
- '*.md'
|
|
branches:
|
|
- master
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref_name }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-matrix:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-24.04]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Install tomb dependencies
|
|
run: |
|
|
sudo apt-get update -y -q
|
|
sudo apt-get install -y -q zsh cryptsetup gpg gawk libgcrypt20-dev steghide qrencode python3-pip python3-dev libssl-dev make gcc sudo gettext bsdmainutils file pinentry-curses xxd libsodium23 libsodium-dev argon2
|
|
- name: Install python2 on ubuntu 20
|
|
if: matrix.os == 'ubuntu-20.04'
|
|
run: sudo apt-get install -y -q python2
|
|
- name: Install python2 on ubuntu 22
|
|
if: matrix.os == 'ubuntu-22.04'
|
|
run: sudo apt-get install -y -q python2
|
|
- name: Install doas where found
|
|
if: matrix.os == 'ubuntu-24.04'
|
|
run: |
|
|
sudo apt-get install -y -q opendoas
|
|
echo "permit nopass root" | sudo tee /etc/doas.conf
|
|
- uses: actions/checkout@v3
|
|
- name: Build the pbkdf2 extras
|
|
run: |
|
|
make --directory=extras/kdf-keys
|
|
sudo make --directory=extras/kdf-keys install
|
|
- name: Run pbkdf2 tests
|
|
run: sudo make -C extras/kdf-keys test
|
|
- name: Disable swap
|
|
run: sudo swapoff -a
|
|
- name: Run main tests
|
|
run: sudo make test
|