mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 23:46:41 +02:00
test: fix ci/cd tests 🚨
This commit is contained in:
parent
49dfa751dd
commit
a2568c1fd8
2 changed files with 30 additions and 19 deletions
45
.github/workflows/cd.yml
vendored
45
.github/workflows/cd.yml
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue