mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-25 06:07:38 +00:00
portable tomb tests in ci
This commit is contained in:
parent
d719ebb638
commit
eeb9d65393
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
os: [ubuntu-22.04, ubuntu-20.04]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: dependencies
|
||||
- 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 python2 python3-pip python3-dev libssl-dev make gcc sudo gettext bsdmainutils file pinentry-curses xxd libsodium23 libsodium-dev
|
||||
|
94
.github/workflows/portable.yml
vendored
Normal file
94
.github/workflows/portable.yml
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
name: portable tomb
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'portable/**'
|
||||
- '.github/workflows/portable.yml'
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
ubuntu-20:
|
||||
name: 🐧 test Ubuntu-20
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install portable tomb dependencies
|
||||
run: |
|
||||
sudo apt-get install -q -y make openssl wget fuse3 util-linux
|
||||
sudo make -C portable download-deps-ubuntu20
|
||||
- name: Run portable tomb test
|
||||
run: sudo make -C portable create-open-close
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ubuntu-test.tomb
|
||||
path: portable/test.tomb*
|
||||
retention-days: 1
|
||||
|
||||
freebsd:
|
||||
runs-on: macos-12
|
||||
name: 😈 test FreeBSD-13
|
||||
needs: [ubuntu-20]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Download portable tomb volume built on Ubuntu
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: ubuntu-test.tomb
|
||||
path: portable
|
||||
- name: Test in FreeBSD
|
||||
id: test
|
||||
uses: vmactions/freebsd-vm@v0
|
||||
with:
|
||||
usesh: true
|
||||
prepare: |
|
||||
pkg install -y sudo gmake bash fusefs-libs3 fusefs-lkl e2fsprogs wget
|
||||
wget https://files.dyne.org/tomb3/third-party/veracrypt-freebsd13-amd64
|
||||
mv veracrypt-freebsd13-amd64 /usr/bin/veracrypt
|
||||
wget https://files.dyne.org/tomb3/third-party/zenroom-freebsd13-amd64
|
||||
mv zenroom-freebsd13-amd64 /usr/bin/zenroom
|
||||
chmod a+x /usr/bin/veracrypt /usr/bin/zenroom
|
||||
kldload fusefs
|
||||
run: |
|
||||
sudo gmake -C portable
|
||||
sudo gmake -C portable check-random-data
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: freebsd-test.tomb
|
||||
path: portable/test.tomb*
|
||||
retention-days: 1
|
||||
|
||||
ubuntu-last-cleanup:
|
||||
name: 🎯 final Ubuntu tests and cleanup
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [freebsd]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install compiler and dependencies
|
||||
run: |
|
||||
sudo apt-get install -q -y make openssl wget fuse3 util-linux
|
||||
sudo make -C portable download-deps-ubuntu20
|
||||
- name: Download tomb built on FreeBSD
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: freebsd-test.tomb
|
||||
path: portable
|
||||
- name: Check integrity FreeBSD->Ubuntu
|
||||
run: sudo make -C portable check-random-data
|
||||
- name: delete FreeBSD tomb artifacts
|
||||
uses: geekyeggo/delete-artifact@v2
|
||||
with:
|
||||
name: freebsd-test.tomb
|
||||
- name: delete Ubuntu tomb artifacts
|
||||
uses: geekyeggo/delete-artifact@v2
|
||||
with:
|
||||
name: ubuntu-test.tomb
|
Loading…
Reference in New Issue
Block a user