Installing fuse3 manually #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install -y libsodium-dev libssl-dev pkg-config python3 python3-pip autoconf automake make gcc meson ninja-build wget | |
- name: Install libfuse v3.16.2 | |
run: | | |
wget https://github.com/libfuse/libfuse/releases/download/fuse-3.16.2/fuse-3.16.2.tar.gz | |
tar xzf fuse-3.16.2.tar.gz; cd fuse-3.16.2 | |
mkdir build; cd build | |
meson setup .. | |
meson configure -D disable-mtab=true | |
meson configure -D prefix=/usr/local | |
meson configure -D tests=false | |
meson configure -D examples=false | |
ninja | |
sudo ninja install | |
ldconfig -v | |
sudo sed -i '/user_allow_other/s/^#.*user_allow_other$/user_allow_other/' /usr/local/etc/fuse.conf | |
- name: Install Crypt4GH | |
run: sudo python3 -m pip install crypt4gh | |
- name: Compile | |
run: | | |
autoreconf -i | |
./configure | |
make | |
sudo make install | |
- name: Print version | |
run: crypt4gh-sqlite.fs -V | |
- name: Update the test and start the file system | |
run: make -C example update up | |
- name: Test 1 | |
run: diff example/mnt/crypt4gh/cleartext <(C4GH_PASSPHRASE=hello crypt4gh decrypt --sk example/example.seckey < example/mnt/crypt4gh/encrypted 2>/dev/null) | |
- name: Test 2 | |
run: diff example/subdir/file1.txt <(cat example/prepend.txt example/example.txt) | |
- name: Test 3 | |
run: diff example/subdir/file2.txt <(cat example/example.txt example/append.txt) | |
- name: Test 4 | |
run: diff example/extra/footer.txt example/append.txt | |
- name: Test 5 | |
run: diff example/extra/header.txt example/prepend.txt | |
- name: Test 6 | |
run: diff example/slim.txt example/example.txt | |
- name: Tear down | |
run: make -C example down |