test: fix ci/cd tests 🚨

This commit is contained in:
Dheepak Krishnamurthy 2022-04-28 14:39:44 -06:00
parent 49dfa751dd
commit a2568c1fd8
2 changed files with 30 additions and 19 deletions

View file

@ -4,7 +4,7 @@ on:
branches:
- main
tags:
- v*
- v*
jobs:
build:
@ -15,44 +15,44 @@ jobs:
include:
- os: macOS-latest
target: x86_64-apple-darwin
rust_flags: ''
features: ''
binary_postfix: ''
rust_flags: ""
features: ""
binary_postfix: ""
upx_args: --best
strip: true
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
rust_flags: ''
features: ''
binary_postfix: ''
rust_flags: ""
features: ""
binary_postfix: ""
upx_args: --best --lzma
strip: true
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
rust_flags: ''
features: ''
binary: 'taskwarrior-tui-x86_64-unknown-linux-musl'
rust_flags: ""
features: ""
binary: "taskwarrior-tui-x86_64-unknown-linux-musl"
upx_args: --best --lzma
strip: true
- os: windows-latest
target: x86_64-pc-windows-gnu
rust_flags: -C target-feature=+crt-static
features: ''
binary_postfix: '.exe'
features: ""
binary_postfix: ".exe"
upx_args: -9
strip: false
- os: windows-latest
target: x86_64-pc-windows-msvc
rust_flags: -C target-feature=+crt-static
features: ''
binary_postfix: '.exe'
features: ""
binary_postfix: ".exe"
upx_args: -9
strip: false
- os: windows-latest
target: i686-pc-windows-msvc
rust_flags: -C target-feature=+crt-static
features: ''
binary_postfix: '.exe'
features: ""
binary_postfix: ".exe"
upx_args: -9
strip: false
env:
@ -286,7 +286,18 @@ jobs:
toolchain: nightly
override: true
profile: minimal
- run: sudo apt-get update && sudo apt-get install -y taskwarrior
- run: sudo apt-get update
- name: Compile taskwarrior
run: |
cd /tmp
git clone https://github.com/GothenburgBitFactory/taskwarrior
cd taskwarrior
git checkout v2.6.1
cmake -DCMAKE_BUILD_TYPE=release -DENABLE_SYNC=OFF .
make
sudo make install
- run: |
task --version
- uses: actions/checkout@v2
with:
repository: kdheepak/taskwarrior-testdata

View file

@ -41,12 +41,12 @@ jobs:
cmake -DCMAKE_BUILD_TYPE=release -DENABLE_SYNC=OFF .
make
sudo make install
- run: |
task --version
- uses: actions/checkout@v2
with:
repository: kdheepak/taskwarrior-testdata
path: taskwarrior-testdata
- run: |
task --version
- run: |
# prepare taskwarrior, initial setup
task rc.confirmation=off || echo 0