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: branches:
- main - main
tags: tags:
- v* - v*
jobs: jobs:
build: build:
@ -15,44 +15,44 @@ jobs:
include: include:
- os: macOS-latest - os: macOS-latest
target: x86_64-apple-darwin target: x86_64-apple-darwin
rust_flags: '' rust_flags: ""
features: '' features: ""
binary_postfix: '' binary_postfix: ""
upx_args: --best upx_args: --best
strip: true strip: true
- os: ubuntu-latest - os: ubuntu-latest
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
rust_flags: '' rust_flags: ""
features: '' features: ""
binary_postfix: '' binary_postfix: ""
upx_args: --best --lzma upx_args: --best --lzma
strip: true strip: true
- os: ubuntu-latest - os: ubuntu-latest
target: x86_64-unknown-linux-musl target: x86_64-unknown-linux-musl
rust_flags: '' rust_flags: ""
features: '' features: ""
binary: 'taskwarrior-tui-x86_64-unknown-linux-musl' binary: "taskwarrior-tui-x86_64-unknown-linux-musl"
upx_args: --best --lzma upx_args: --best --lzma
strip: true strip: true
- os: windows-latest - os: windows-latest
target: x86_64-pc-windows-gnu target: x86_64-pc-windows-gnu
rust_flags: -C target-feature=+crt-static rust_flags: -C target-feature=+crt-static
features: '' features: ""
binary_postfix: '.exe' binary_postfix: ".exe"
upx_args: -9 upx_args: -9
strip: false strip: false
- os: windows-latest - os: windows-latest
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
rust_flags: -C target-feature=+crt-static rust_flags: -C target-feature=+crt-static
features: '' features: ""
binary_postfix: '.exe' binary_postfix: ".exe"
upx_args: -9 upx_args: -9
strip: false strip: false
- os: windows-latest - os: windows-latest
target: i686-pc-windows-msvc target: i686-pc-windows-msvc
rust_flags: -C target-feature=+crt-static rust_flags: -C target-feature=+crt-static
features: '' features: ""
binary_postfix: '.exe' binary_postfix: ".exe"
upx_args: -9 upx_args: -9
strip: false strip: false
env: env:
@ -286,7 +286,18 @@ jobs:
toolchain: nightly toolchain: nightly
override: true override: true
profile: minimal 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 - uses: actions/checkout@v2
with: with:
repository: kdheepak/taskwarrior-testdata repository: kdheepak/taskwarrior-testdata

View file

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