Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kingosticks authored Oct 6, 2023
1 parent feaead4 commit bedbc4f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- name: Checkout gst-plugins-rs
run: git clone --depth 1 -b ${{ env.GST_GIT_BRANCH }} ${{ env.GST_GIT_REPO }}

- name: Hash cargo lockfile
- name: Find latest spotify src commit
id: gstsrc
run: |
echo "hash=$(git -C gst-plugins-rs rev-parse HEAD)" >> $GITHUB_OUTPUT
echo "hash=$(git -C gst-plugins-rs rev-parse HEAD:audio/spotify)" >> $GITHUB_OUTPUT
main:
strategy:
Expand Down Expand Up @@ -55,14 +55,16 @@ jobs:
cp gst-plugins-rs/audio/spotify/Cargo.toml Cargo.toml.orig
- name: Cache cargo stuff
env:
CONTAINER_VER: gst-plugin-spotify-build:${{ hashFiles('VERSION') }}
uses: actions/cache@v3
with:
path: |
~/.cargo
gst-plugins-rs/target/${{ matrix.rust_target }}/release
key: ${{ runner.os }}-${{ matrix.rust_target }}-cargo-${{ needs.bust-cache.outputs.srchash }}
key: ${{ env.CONTAINER_VER }}-${{ matrix.rust_target }}-cargo-${{ needs.bust-cache.outputs.srchash }}
restore-keys: |
${{ runner.os }}-${{ matrix.rust_target }}-cargo-
gst-plugin-spotify-build:${{ hashFiles('VERSION') }}-${{ matrix.rust_target }}-cargo-
- name: Install cargo deb
run: cargo install cargo-deb
Expand Down

0 comments on commit bedbc4f

Please sign in to comment.