diff --git a/.github/actions/install-taskwarrior/action.yml b/.github/actions/install-taskwarrior/action.yml index 7a540d56..4c2f9c42 100644 --- a/.github/actions/install-taskwarrior/action.yml +++ b/.github/actions/install-taskwarrior/action.yml @@ -7,34 +7,12 @@ inputs: runs: using: "composite" steps: - # This pattern should only match match assets with a [numbers and dots] suffix - - name: Download latest stable taskwarrior release + # TODO: Format onto two lines + - name: Clone latest stable taskwarrior release run: | - gh release download -p "task-[0-9.]*.tar.gz" -R "GothenburgBitFactory/taskwarrior" -D /tmp/download - shell: bash - env: - GH_TOKEN: ${{ inputs.secret_gh_token }} - # Future proofing - - name: Check that we only got one release asset - run: | - if [ $(ls -1 /tmp/download | wc -l) -ne 1 ] - then - echo "Expected exactly one release asset" - exit 1 - else - echo "Got expected number of release assets" - fi - shell: bash - - name: Extract taskwarrior without version number - run: | - cd /tmp/download - find . -name "*.tar.gz" -exec mv {} task.tar.gz \; - tar -xf task.tar.gz --transform='s;^task-[0-9.]*/;task/;' cd /tmp - mv download/task taskwarrior - rm -rf download - shell: bash - - name: Compile taskwarrior + git clone --depth 1 --recurse-submodules --shallow-submodules --single-branch -b stable git@github:com/GothenburgBitFactory/taskwarrior.git taskwarrior + - name: Compile and install taskwarrior run: | cd /tmp/taskwarrior cmake -S . -B build -DCMAKE_BUILD_TYPE=Release .