fix: Remove get_args 🐛

This commit is contained in:
Dheepak Krishnamurthy 2021-12-06 13:52:31 -07:00
parent 577b03e315
commit 5f5b335041
2 changed files with 37 additions and 24 deletions

View file

@ -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:
@ -63,7 +63,6 @@ jobs:
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
target: ${{ matrix.target }}
default: true default: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
@ -127,6 +126,15 @@ jobs:
steps: steps:
- name: Check out Git repository - name: Check out Git repository
uses: actions/checkout@v2 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 - uses: actions-rs/cargo@v1
with: with:
command: build command: build
@ -155,6 +163,10 @@ jobs:
steps: steps:
- name: Check out Git repository - name: Check out Git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: build command: build
@ -185,6 +197,10 @@ jobs:
steps: steps:
- name: Check out Git repository - name: Check out Git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: build command: build
@ -199,6 +215,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: build command: build

View file

@ -1590,13 +1590,6 @@ impl TaskwarriorTui {
} }
info!("Running `{:?}`", task); info!("Running `{:?}`", task);
debug!(
"Running `task {}`",
task.get_args()
.map(|s| s.to_string_lossy().to_string())
.collect::<Vec<String>>()
.join(" ")
);
let output = task.output()?; let output = task.output()?;
let data = String::from_utf8_lossy(&output.stdout); let data = String::from_utf8_lossy(&output.stdout);
let error = String::from_utf8_lossy(&output.stderr); let error = String::from_utf8_lossy(&output.stderr);