Skip to content

Commit

Permalink
Fix worflows
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Meyer <meyer.thibault@gmail.com>
  • Loading branch information
thibaultmeyer committed May 18, 2024
1 parent 0ab7ad1 commit 629400e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
uses: actions/checkout@v3

- name: Create Build Environment
uses: ATiltedTree/setup-rust@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rust-version: stable
toolchain: stable

- name: Build
working-directory: ${{github.workspace}}
Expand All @@ -34,9 +34,9 @@ jobs:
uses: actions/checkout@v3

- name: Create Build Environment
uses: ATiltedTree/setup-rust@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rust-version: stable
toolchain: stable

- name: Build
working-directory: ${{github.workspace}}
Expand All @@ -58,9 +58,9 @@ jobs:
uses: actions/checkout@v3

- name: Create Build Environment
uses: ATiltedTree/setup-rust@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rust-version: stable
toolchain: stable

- name: Build
shell: pwsh
Expand Down
35 changes: 23 additions & 12 deletions .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
- name: Clone repository
uses: actions/checkout@v3

- name: Build
uses: actions-rs/cargo@v1
- name: Create Build Environment
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
command: build
args: --release
toolchain: stable

- name: Build
working-directory: ${{github.workspace}}
shell: bash
run: cargo build --release

- name: Minify binary
working-directory: ${{github.workspace}}/target/release/
Expand Down Expand Up @@ -75,11 +79,15 @@ jobs:
- name: Clone repository
uses: actions/checkout@v3

- name: Build
uses: actions-rs/cargo@v1
- name: Create Build Environment
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
command: build
args: --release
toolchain: stable

- name: Build
working-directory: ${{github.workspace}}
shell: bash
run: cargo build --release

- name: Minify binary
working-directory: ${{github.workspace}}/target/release/
Expand Down Expand Up @@ -135,11 +143,14 @@ jobs:
- name: Clone repository
uses: actions/checkout@v3

- name: Build
uses: actions-rs/cargo@v1
- name: Create Build Environment
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
command: build
args: --release
toolchain: stable

- name: Build
shell: pwsh
run: cargo build --release

- name: Add Icon
working-directory: ${{github.workspace}}/target/release/
Expand Down
2 changes: 1 addition & 1 deletion src/bingwallpaper/bingapiclient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl BingAPIClient {
};

// Returns the latest image
let image = image_archive.images.get(0).unwrap();
let image = image_archive.images.first().unwrap();

Ok(BingAPIImagesArchiveImage {
url: image.url.clone(),
Expand Down

0 comments on commit 629400e

Please sign in to comment.