2022-01-08 00:26:51 +00:00
|
|
|
name:
|
2022-11-14 10:51:04 +00:00
|
|
|
💀 Linux Tomb
|
2022-01-08 00:26:51 +00:00
|
|
|
|
2022-11-13 21:24:47 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
2024-08-05 13:32:54 +00:00
|
|
|
- 'extras/portable/**'
|
2022-11-13 21:24:47 +00:00
|
|
|
- '*.md'
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2022-11-14 10:51:04 +00:00
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
2024-08-05 13:32:54 +00:00
|
|
|
- 'extras/portable/**'
|
2022-11-14 10:51:04 +00:00
|
|
|
- '*.md'
|
2022-11-13 21:24:47 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2022-01-08 00:26:51 +00:00
|
|
|
|
2022-11-13 21:24:47 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref_name }}
|
|
|
|
cancel-in-progress: true
|
2022-01-08 00:26:51 +00:00
|
|
|
|
2022-11-13 21:24:47 +00:00
|
|
|
jobs:
|
|
|
|
build-matrix:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-08-31 02:10:42 +00:00
|
|
|
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-24.04]
|
2022-11-13 21:24:47 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2022-01-08 00:26:51 +00:00
|
|
|
steps:
|
2022-11-13 23:25:58 +00:00
|
|
|
- name: Install tomb dependencies
|
2022-11-13 21:24:47 +00:00
|
|
|
run: |
|
|
|
|
sudo apt-get update -y -q
|
2024-08-31 02:10:42 +00:00
|
|
|
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
|
2022-04-13 13:21:46 +00:00
|
|
|
- uses: actions/checkout@v3
|
2024-08-05 13:32:54 +00:00
|
|
|
- name: Build the pbkdf2 extras
|
2022-01-08 00:26:51 +00:00
|
|
|
run: |
|
2022-11-13 21:24:47 +00:00
|
|
|
make --directory=extras/kdf-keys
|
|
|
|
sudo make --directory=extras/kdf-keys install
|
2024-08-05 13:32:54 +00:00
|
|
|
- name: Run pbkdf2 tests
|
|
|
|
run: sudo make -C extras/kdf-keys test
|
2022-01-08 00:26:51 +00:00
|
|
|
- name: Disable swap
|
|
|
|
run: sudo swapoff -a
|
2022-11-13 21:24:47 +00:00
|
|
|
- name: Run main tests
|
|
|
|
run: sudo make test
|