VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/FUNDING.yml1
-rw-r--r--.github/ISSUE_TEMPLATE/bug.md34
-rw-r--r--.github/ISSUE_TEMPLATE/change.md30
-rw-r--r--.github/ISSUE_TEMPLATE/feature.md27
-rw-r--r--.github/stale.yml25
-rw-r--r--.github/workflows/build-linux.yml213
6 files changed, 330 insertions, 0 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 00000000..aa1fcb40
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1 @@
+custom: "https://www.veracrypt.fr/en/Donation.html"
diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md
new file mode 100644
index 00000000..b19553cd
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug.md
@@ -0,0 +1,34 @@
+---
+name: Bug Report
+about: Found a bug? Let us know! ๐Ÿ›
+labels: bug, unreviewed
+
+---
+
+<!-- Please provide a general summary of the issue in the title above. -->
+
+# Expected behavior
+<!-- Describe here what you have expected to happen -->
+
+# Observed behavior
+<!-- Describe here what happened instead of the expected behavior -->
+
+# Steps to reproduce
+<!-- Tell use all the steps you did so we can reproduce the problem -->
+1.
+2.
+3.
+4.
+
+# Screenshots
+<!-- Add additional screenshots -->
+
+# Your Environment
+
+Please tell us more about your environment
+
+**VeraCrypt version:** <!-- f.e. 1.24-Update7 -->
+
+**Operating system and version:** <!-- f.e. Windows 10 build 19042 -->
+
+**System type:** <!-- f.e. 64-bit -->
diff --git a/.github/ISSUE_TEMPLATE/change.md b/.github/ISSUE_TEMPLATE/change.md
new file mode 100644
index 00000000..4067ebae
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/change.md
@@ -0,0 +1,30 @@
+---
+name: Change
+about: Change or extend functionality that already exists.
+labels: change, unreviewed
+
+---
+
+<!-- Please provide a general summary of your change in the title above. -->
+
+# Current behavior
+<!-- Describe here how it actually works -->
+
+# Desired behavior
+<!-- Describe here the difference from current behavior-->
+
+# Screenshots/Mockup/Designs
+<!-- Add additional screenshots, mockups or design proposals -->
+
+# Additional information
+<!-- Are there any additional requirements? Further ideas, ... -->
+
+# Your Environment
+
+Please tell us more about your environment
+
+**VeraCrypt version:** <!-- f.e. 1.24-Update7 -->
+
+**Operating system and version:** <!-- f.e. Windows 10 build 19042 -->
+
+**System type:** <!-- f.e. 64-bit -->
diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/ISSUE_TEMPLATE/feature.md
new file mode 100644
index 00000000..44729e98
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature.md
@@ -0,0 +1,27 @@
+---
+name: Feature
+about: Add new functionality or suggest an idea to the project.
+labels: feature, unreviewed
+
+---
+
+<!-- Please provide a general summary of your feature in the title above. -->
+
+# Desired behavior
+<!-- Describe here what and why your feature should be added -->
+
+# Screenshots/Mockup/Designs
+<!-- Add additional screenshots, mockups or design proposals -->
+
+# Additional information
+<!-- Are there any additional requirements? Further ideas, ... -->
+
+# Your Environment
+
+Please tell us more about your environment
+
+**VeraCrypt version:** <!-- f.e. 1.24-Update7 -->
+
+**Operating system and version:** <!-- f.e. Windows 10 build 19042 -->
+
+**System type:** <!-- f.e. 64-bit -->
diff --git a/.github/stale.yml b/.github/stale.yml
new file mode 100644
index 00000000..5022ad87
--- /dev/null
+++ b/.github/stale.yml
@@ -0,0 +1,25 @@
+# Number of days of inactivity before an issue becomes stale
+daysUntilStale: 60
+# Number of days of inactivity before a stale issue is closed
+daysUntilClose: 7
+# Issues with these labels will never be considered stale
+exemptLabels:
+ - pinned
+ - security
+# Label to use when marking an issue as stale
+staleLabel: wontfix
+# Comment to post when marking an issue as stale. Set to `false` to disable
+markComment: >
+ This issue has been automatically marked as stale because it has not had
+ recent activity. It will be closed if no further activity occurs. Thank you
+ for your contributions.
+# Comment to post when closing a stale issue. Set to `false` to disable
+closeComment: >
+ This issue has been automatically closed because it has not had
+ recent activity. This probably means that it is not reproducible
+ or it has been fixed in a newer version. If itโ€™s an enhancement
+ and hasn't been taken on for so long, then it seems no one has
+ the time to implement this.
+ Please reopen if you still encounter this issue with the [latest stable version](https://www.veracrypt.fr/en/Downloads.html).
+ You can also contribute directly by providing a pull request.
+ Thank you!
diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml
new file mode 100644
index 00000000..87dc0b45
--- /dev/null
+++ b/.github/workflows/build-linux.yml
@@ -0,0 +1,213 @@
+name: Build and test Linux
+
+on:
+ push:
+ branches: [ "master" ]
+ paths:
+ - 'src/Build/Include/Makefile.inc'
+ - 'src/Build/CMakeLists.txt'
+ - 'src/Build/build_cmake_deb.sh'
+ - 'src/Common/*.h'
+ - 'src/Common/*.cpp'
+ - 'src/Common/*.c'
+ - 'src/Core/**'
+ - 'src/Crypto/**'
+ - 'src/Driver/Fuse/**'
+ - 'src/Main/**'
+ - 'src/PKCS11/**'
+ - 'src/Platform/**'
+ - 'src/Resources/**'
+ - 'src/Setup/Linux/**'
+ - 'src/Volume/**'
+ - 'src/Makefile'
+ - '.github/workflows/build-linux.yml'
+ pull_request:
+ branches: [ "master" ]
+ paths:
+ - 'src/Build/Include/Makefile.inc'
+ - 'src/Build/CMakeLists.txt'
+ - 'src/Build/build_cmake_deb.sh'
+ - 'src/Common/*.h'
+ - 'src/Common/*.cpp'
+ - 'src/Common/*.c'
+ - 'src/Core/**'
+ - 'src/Crypto/**'
+ - 'src/Driver/Fuse/**'
+ - 'src/Main/**'
+ - 'src/PKCS11/**'
+ - 'src/Platform/**'
+ - 'src/Resources/**'
+ - 'src/Setup/Linux/**'
+ - 'src/Volume/**'
+ - 'src/Makefile'
+ - '.github/workflows/build-linux.yml'
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
+env:
+ WXWIDGETS_VERSION: 3.2.5
+
+jobs:
+ ubuntu-build:
+
+ runs-on: ubuntu-22.04
+ timeout-minutes: 30
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Generate cache key
+ id: cache-key
+ run: |
+ echo "cache_key=$(echo ${{ env.WXWIDGETS_VERSION }}-$(sha256sum src/Makefile .github/workflows/build-linux.yml | awk '{print $1}'))" >> $GITHUB_OUTPUT
+
+ - name: Cache wxBuildConsole
+ uses: actions/cache@v3
+ id: cache-wxbuildconsole
+ with:
+ path: /tmp/wxBuildConsole
+ key: wxBuildConsole-${{ steps.cache-key.outputs.cache_key }}
+
+ - name: Cache wxBuildGUI
+ uses: actions/cache@v3
+ id: cache-wxbuildgui
+ with:
+ path: /tmp/wxBuildGUI
+ key: wxBuildGUI-${{ steps.cache-key.outputs.cache_key }}
+
+ - name: Cache wxWidgets
+ uses: actions/cache@v3
+ id: cache-wxwidgets
+ with:
+ path: /tmp/wxWidgets-${{ env.WXWIDGETS_VERSION }}
+ key: wxWidgets-${{ steps.cache-key.outputs.cache_key }}
+
+ - name: Install dependencies
+ run: sudo apt-get update && sudo apt-get install -y wget tar libpcsclite-dev libfuse-dev yasm libgtk-3-dev libayatana-appindicator3-dev cmake debhelper
+
+ - name: Download and extract wxWidgets to /tmp if build folders are missing
+ if: steps.cache-wxbuildconsole.outputs.cache-hit != 'true' || steps.cache-wxbuildgui.outputs.cache-hit != 'true' || steps.cache-wxwidgets.outputs.cache-hit != 'true'
+ run: |
+ wget https://github.com/wxWidgets/wxWidgets/releases/download/v${{ env.WXWIDGETS_VERSION }}/wxWidgets-${{ env.WXWIDGETS_VERSION }}.tar.bz2 -O /tmp/wxWidgets-${{ env.WXWIDGETS_VERSION }}.tar.bz2
+ mkdir -p /tmp/wxWidgets-${{ env.WXWIDGETS_VERSION }}
+ tar -xjf /tmp/wxWidgets-${{ env.WXWIDGETS_VERSION }}.tar.bz2 -C /tmp/wxWidgets-${{ env.WXWIDGETS_VERSION }} --strip-components=1
+
+ - name: Build VeraCrypt .deb packages
+ run: |
+ chmod +x src/Build/build_cmake_deb.sh
+ src/Build/build_cmake_deb.sh WXSTATIC INDICATOR
+
+ - name: Upload GUI .deb packages
+ uses: actions/upload-artifact@v3
+ with:
+ name: veracrypt-gui-debs
+ path: /tmp/VeraCrypt_Packaging/GUI/Packaging/veracrypt-*.*
+
+ - name: Upload Console .deb packages
+ uses: actions/upload-artifact@v3
+ with:
+ name: veracrypt-console-debs
+ path: /tmp/VeraCrypt_Packaging/Console/Packaging/veracrypt-console-*.*
+
+ - name: Install and test VeraCrypt GUI .deb packages
+ run: |
+ sudo apt install -y /tmp/VeraCrypt_Packaging/GUI/Packaging/veracrypt-*.deb
+ veracrypt --text --test && veracrypt --text --version
+ sudo veracrypt --text --non-interactive Tests/test.sha256.hc --hash sha256 --slot 1 --password test --mount-options=ro
+ sudo veracrypt --text --non-interactive Tests/test.sha512.hc --hash sha512 --slot 2 --password test --mount-options=ro
+ sudo veracrypt --text --non-interactive Tests/test.streebog.hc --hash streebog --slot 3 --password test --mount-options=ro
+ sudo veracrypt --text --non-interactive Tests/test.whirlpool.hc --hash whirlpool --slot 4 --password test --mount-options=ro
+ sudo veracrypt --text --list
+ echo -n "Dummy" > /tmp/expected_content.txt
+ if cmp -s /media/veracrypt1/Dummy.txt /tmp/expected_content.txt; then
+ echo "Content of test.sha256.hc is valid."
+ else
+ echo "Content of test.sha256.hc is invalid!"
+ exit 1
+ fi
+ if cmp -s /media/veracrypt2/Dummy.txt /tmp/expected_content.txt; then
+ echo "Content of test.sha512.hc is valid."
+ else
+ echo "Content of test.sha512.hc is invalid!"
+ exit 1
+ fi
+ if cmp -s /media/veracrypt3/Dummy.txt /tmp/expected_content.txt; then
+ echo "Content of test.streebog.hc is valid."
+ else
+ echo "Content of test.streebog.hc is invalid!"
+ exit 1
+ fi
+ if cmp -s /media/veracrypt4/Dummy.txt /tmp/expected_content.txt; then
+ echo "Content of test.whirlpool.hc is valid."
+ else
+ echo "Content of test.whirlpool.hc is invalid!"
+ exit 1
+ fi
+ sudo veracrypt -d
+ sudo apt remove -y veracrypt
+
+ - name: Install and test VeraCrypt Console .deb packages
+ run: |
+ sudo apt install -y /tmp/VeraCrypt_Packaging/Console/Packaging/veracrypt-console-*.deb
+ veracrypt --test && veracrypt --version
+ sudo veracrypt --non-interactive Tests/test.sha256.hc --hash sha256 --slot 1 --password test --mount-options=ro
+ sudo veracrypt --non-interactive Tests/test.sha512.hc --hash sha512 --slot 2 --password test --mount-options=ro
+ sudo veracrypt --non-interactive Tests/test.streebog.hc --hash streebog --slot 3 --password test --mount-options=ro
+ sudo veracrypt --non-interactive Tests/test.whirlpool.hc --hash whirlpool --slot 4 --password test --mount-options=ro
+ sudo veracrypt --list
+ echo -n "Dummy" > /tmp/expected_content.txt
+ if cmp -s /media/veracrypt1/dummy.txt /tmp/expected_content.txt; then
+ echo "Content of test.sha256.hc is valid."
+ else
+ echo "Content of test.sha256.hc is invalid!"
+ exit 1
+ fi
+ if cmp -s /media/veracrypt2/dummy.txt /tmp/expected_content.txt; then
+ echo "Content of test.sha512.hc is valid."
+ else
+ echo "Content of test.sha512.hc is invalid!"
+ exit 1
+ fi
+ if cmp -s /media/veracrypt3/dummy.txt /tmp/expected_content.txt; then
+ echo "Content of test.streebog.hc is valid."
+ else
+ echo "Content of test.streebog.hc is invalid!"
+ exit 1
+ fi
+ if cmp -s /media/veracrypt4/dummy.txt /tmp/expected_content.txt; then
+ echo "Content of test.whirlpool.hc is valid."
+ else
+ echo "Content of test.whirlpool.hc is invalid!"
+ exit 1
+ fi
+ sudo veracrypt -d
+ sudo apt remove -y veracrypt-console
+
+ - name: Cleanup old caches
+ uses: actions/github-script@v6
+ if: always()
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ script: |
+ const caches = await github.rest.actions.getActionsCacheList({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ })
+ for (const cache of caches.data.actions_caches) {
+ if (cache.key.startsWith('wxBuildConsole-') || cache.key.startsWith('wxBuildGUI-') || cache.key.startsWith('wxWidgets-')) {
+ if (cache.key !== `wxBuildConsole-${{ steps.cache-key.outputs.cache_key }}` &&
+ cache.key !== `wxBuildGUI-${{ steps.cache-key.outputs.cache_key }}` &&
+ cache.key !== `wxWidgets-${{ steps.cache-key.outputs.cache_key }}`) {
+ console.log(`Deleting cache with key: ${cache.key}`)
+ await github.rest.actions.deleteActionsCacheById({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ cache_id: cache.id,
+ })
+ }
+ }
+ }
+