Skip to content

Commit

Permalink
Updated rust-cache actions to v2 (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
guylamar2006 authored Oct 18, 2024
1 parent 27ced60 commit 511ea26
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions .github/actions/macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ description: Build macOS builds
runs:
using: "composite"
steps:
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- name: Build macOS Release
shell: bash
run: cargo build --release
- name: copy binary
shell: bash
run: cp target/release/neothesia .github/app/Neothesia.app/Contents/MacOS
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/ubuntu-recorder/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ runs:
- name: Install alsa
shell: bash
run: sudo apt update && sudo apt install libasound2-dev libgtk-3-dev libavcodec-dev libavformat-dev libswscale-dev
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release -p neothesia-cli
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- name: Build Ubuntu Recorder Release
shell: bash
run: cargo build --release -p neothesia-cli
- name: Chmod +x
shell: bash
run: chmod +x target/release/neothesia-cli
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/ubuntu/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ runs:
- name: Install alsa
shell: bash
run: sudo apt update && sudo apt install libasound2-dev libgtk-3-dev
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- name: Build Ubuntu Release
shell: bash
run: cargo build --release
- name: Chmod +x
shell: bash
run: chmod +x target/release/neothesia
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/windows-recorder/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ runs:
Add-Content $env:GITHUB_ENV "FFMPEG_DIR=${pwd}\ffmpeg`n"
Add-Content $env:GITHUB_PATH "${pwd}\ffmpeg\bin`n"
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release -p neothesia-cli
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- name: Build Ubuntu Release
shell: bash
run: cargo build --release -p neothesia-cli
- uses: actions/upload-artifact@v4
with:
name: windows-recorder-artifact
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ description: Build Windows builds
runs:
using: "composite"
steps:
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- name: Build Windows Release
shell: bash
run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: windows-artifact
Expand Down

0 comments on commit 511ea26

Please sign in to comment.