diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5346e9a..6b6a3b0 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: @@ -63,6 +63,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable + target: ${{ matrix.target }} default: true - uses: actions-rs/cargo@v1 with: @@ -126,15 +127,6 @@ jobs: steps: - name: Check out Git repository uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - default: true - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - default: true - uses: actions-rs/cargo@v1 with: command: build @@ -163,10 +155,6 @@ jobs: steps: - name: Check out Git repository uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - default: true - uses: actions-rs/cargo@v1 with: command: build @@ -197,10 +185,6 @@ jobs: steps: - name: Check out Git repository uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - default: true - uses: actions-rs/cargo@v1 with: command: build @@ -215,10 +199,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - default: true - uses: actions-rs/cargo@v1 with: command: build diff --git a/src/app.rs b/src/app.rs index 0555563..f0ba50b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1590,6 +1590,13 @@ impl TaskwarriorTui { } info!("Running `{:?}`", task); + debug!( + "Running `task {}`", + task.get_args() + .map(|s| s.to_string_lossy().to_string()) + .collect::>() + .join(" ") + ); let output = task.output()?; let data = String::from_utf8_lossy(&output.stdout); let error = String::from_utf8_lossy(&output.stderr);