Skip to content

Commit

Permalink
refactor: Build taskwarrior from branch
Browse files Browse the repository at this point in the history
  • Loading branch information
RedEtherbloom committed Nov 12, 2024
1 parent 6d7a091 commit 3775bfb
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions .github/actions/install-taskwarrior/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit 3775bfb

Please sign in to comment.