CI optimization (#531)

* portable was moved into extras and is unmaintained
* the CI tests for the portable rewrite are archived
This commit is contained in:
Narrat 2024-08-05 15:32:54 +02:00 committed by GitHub
parent 45c4616110
commit 75aafc0c8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 15 deletions

View File

@ -5,14 +5,14 @@ on:
push: push:
paths-ignore: paths-ignore:
- 'doc/**' - 'doc/**'
- 'portable/**' - 'extras/portable/**'
- '*.md' - '*.md'
branches: branches:
- master - master
pull_request: pull_request:
paths-ignore: paths-ignore:
- 'doc/**' - 'doc/**'
- 'portable/**' - 'extras/portable/**'
- '*.md' - '*.md'
branches: branches:
- master - master
@ -33,13 +33,13 @@ jobs:
sudo apt-get update -y -q 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 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
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build the KDF extras - name: Build the pbkdf2 extras
run: | run: |
make --directory=extras/kdf-keys make --directory=extras/kdf-keys
sudo make --directory=extras/kdf-keys install sudo make --directory=extras/kdf-keys install
- name: Run pbkdf2 tests
run: sudo make -C extras/kdf-keys test
- name: Disable swap - name: Disable swap
run: sudo swapoff -a run: sudo swapoff -a
- name: Run main tests - name: Run main tests
run: sudo make test run: sudo make test
- name: Run KDF tests
run: sudo make -C extras/kdf-keys test

View File

@ -2,13 +2,13 @@ name: ☠️ Portable tomb
on: on:
push: push:
paths: paths:
- 'portable/**' - 'extras/portable/**'
- '.github/workflows/portable.yml' - '.github/workflows/portable.yml'
branches: branches:
- master - master
pull_request: pull_request:
paths: paths:
- 'portable/**' - 'extras/portable/**'
- '.github/workflows/portable.yml' - '.github/workflows/portable.yml'
branches: branches:
- master - master
@ -30,11 +30,11 @@ jobs:
sudo apt-get install -q -y make openssl wget fuse3 util-linux sudo apt-get install -q -y make openssl wget fuse3 util-linux
sudo make -C portable download-deps-ubuntu20 sudo make -C portable download-deps-ubuntu20
- name: Run portable tomb test - name: Run portable tomb test
run: sudo make -C portable create-open-close run: sudo make -C extras/portable create-open-close
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: ubuntu-test.tomb name: ubuntu-test.tomb
path: portable/test.tomb* path: extras/portable/test.tomb*
retention-days: 1 retention-days: 1
freebsd: freebsd:
@ -47,7 +47,7 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: ubuntu-test.tomb name: ubuntu-test.tomb
path: portable path: extras/portable
- name: Test in FreeBSD - name: Test in FreeBSD
id: test id: test
uses: vmactions/freebsd-vm@v0 uses: vmactions/freebsd-vm@v0
@ -62,12 +62,12 @@ jobs:
chmod a+x /usr/bin/veracrypt /usr/bin/zenroom chmod a+x /usr/bin/veracrypt /usr/bin/zenroom
kldload fusefs kldload fusefs
run: | run: |
sudo gmake -C portable sudo gmake -C extras/portable
sudo gmake -C portable check-random-data sudo gmake -C portable check-random-data
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: freebsd-test.tomb name: freebsd-test.tomb
path: portable/test.tomb* path: extras/portable/test.tomb*
retention-days: 1 retention-days: 1
ubuntu-last-cleanup: ubuntu-last-cleanup:
@ -79,14 +79,14 @@ jobs:
- name: Install compiler and dependencies - name: Install compiler and dependencies
run: | run: |
sudo apt-get install -q -y make openssl wget fuse3 util-linux sudo apt-get install -q -y make openssl wget fuse3 util-linux
sudo make -C portable download-deps-ubuntu20 sudo make -C extras/portable download-deps-ubuntu20
- name: Download tomb built on FreeBSD - name: Download tomb built on FreeBSD
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: freebsd-test.tomb name: freebsd-test.tomb
path: portable path: extras/portable
- name: Check integrity FreeBSD->Ubuntu - name: Check integrity FreeBSD->Ubuntu
run: sudo make -C portable check-random-data run: sudo make -C extras/portable check-random-data
- name: delete FreeBSD tomb artifacts - name: delete FreeBSD tomb artifacts
uses: geekyeggo/delete-artifact@v2 uses: geekyeggo/delete-artifact@v2
with: with: