From 868cb80676fa3247b6668b220a944726cbf2342a Mon Sep 17 00:00:00 2001 From: Daljit Singh Date: Mon, 19 Feb 2024 20:34:34 +0000 Subject: [PATCH] Add workflow to create tarball for Linux --- .github/workflows/package-linux-tarball.yml | 31 +++++++++++++++++++++ CMakeLists.txt | 1 + 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/package-linux-tarball.yml diff --git a/.github/workflows/package-linux-tarball.yml b/.github/workflows/package-linux-tarball.yml new file mode 100644 index 0000000000..c914570dd7 --- /dev/null +++ b/.github/workflows/package-linux-tarball.yml @@ -0,0 +1,31 @@ +name: package-linux-tarball + +on: + release: + types: [created] + +jobs: + package: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - name: Install Qt 6 + uses: jurplel/install-qt-action@v3 + with: + version: '6.6.1' + set-env: true + + - name: Run tarball script + run: | + ./packaging/package-linux-tarball.sh . + mv mrtrix.tar.gz mrtrix-$(git describe --tags --abbrev=0)-linux.tar.gz + + - name: Upload package to GitHub Release + uses: AButler/upload-release-assets@v2.0 + with: + files: '*.tar.gz' + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CMakeLists.txt b/CMakeLists.txt index afa90c3711..510d39cf74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,6 +132,7 @@ add_custom_target(Github SOURCES .github/ISSUE_TEMPLATE/custom.md .github/ISSUE_TEMPLATE/feature_request.md .github/workflows/checks.yml + .github/workflows/package-linux-tarball.yml .github/workflows/package-linux-anaconda.yml .github/workflows/package-macos-anaconda.yml .github/workflows/package-macos-native.yml