From a2568c1fd8570af44ebb97646a22e76d3dcf11b2 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Thu, 28 Apr 2022 14:39:44 -0600 Subject: [PATCH] =?UTF-8?q?test:=20fix=20ci/cd=20tests=20=F0=9F=9A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 45 +++++++++++++++++++++++++--------------- .github/workflows/ci.yml | 4 ++-- 2 files changed, 30 insertions(+), 19 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 6b6a3b0..6ad79c0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4b6e18..8c07f8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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