Bump rust version to 1.79 to support absolute paths feature [stabilized]

This commit is contained in:
2025-01-17 14:35:13 -06:00
parent 31b5e6ee8b
commit 3b8e27d9a4
3 changed files with 25 additions and 25 deletions

View File

@@ -7,16 +7,16 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
fail_fast: fail_fast:
description: 'Use fail-fast strategy' description: "Use fail-fast strategy"
required: false required: false
default: 'true' default: "true"
verbose: verbose:
description: 'Verbose output' description: "Verbose output"
required: false required: false
default: 'false' default: "false"
push: push:
tags: tags:
- 'v*.*.*' - "v*.*.*"
# We don't filter by paths here, because we filter by tags, which means we're releasing. All releases should be built. # We don't filter by paths here, because we filter by tags, which means we're releasing. All releases should be built.
pull_request: pull_request:
paths-ignore: paths-ignore:
@@ -38,7 +38,7 @@ jobs:
build: build:
strategy: strategy:
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') || github.event.inputs.fail_fast == 'true' }} fail-fast: ${{ startsWith(github.ref, 'refs/tags/') || github.event.inputs.fail_fast == 'true' }}
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
@@ -74,7 +74,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: 1.74 toolchain: 1.79
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Cache Rust dependencies - name: Cache Rust dependencies
@@ -88,7 +88,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }} key: ${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-${{ matrix.target }}- ${{ runner.os }}-${{ matrix.target }}-
- name: Install Linker Tools - name: Install Linker Tools
if: matrix.tools if: matrix.tools
run: | run: |
@@ -127,7 +127,7 @@ jobs:
echo "ARCHIVE_DIR=$ARCHIVE_DIR" >> $GITHUB_ENV echo "ARCHIVE_DIR=$ARCHIVE_DIR" >> $GITHUB_ENV
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
- name: Archive - name: Archive
if: ${{ !contains(matrix.os, 'windows') }} if: ${{ !contains(matrix.os, 'windows') }}
uses: TheDoctor0/zip-release@0.7.6 uses: TheDoctor0/zip-release@0.7.6
@@ -147,13 +147,13 @@ jobs:
directory: ${{ env.ARCHIVE_DIR }}/ directory: ${{ env.ARCHIVE_DIR }}/
path: | path: |
spotify-quickauth.exe spotify-quickauth.exe
- name: Install rsign2 - name: Install rsign2
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
uses: taiki-e/install-action@v2 uses: taiki-e/install-action@v2
with: with:
tool: rsign2 tool: rsign2
- name: Sign Archive - name: Sign Archive
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
env: env:
@@ -162,13 +162,13 @@ jobs:
shell: bash shell: bash
run: | run: |
echo "$MINISIGN_KEY" > minisign.key echo "$MINISIGN_KEY" > minisign.key
ts=$(node -e 'console.log((new Date).toISOString())') ts=$(node -e 'console.log((new Date).toISOString())')
git=$(git rev-parse HEAD) git=$(git rev-parse HEAD)
comment="gh=$GITHUB_REPOSITORY git=$git ts=$ts run=$GITHUB_RUN_ID" comment="gh=$GITHUB_REPOSITORY git=$git ts=$ts run=$GITHUB_RUN_ID"
rsign sign -W -s minisign.key -x "${{ env.ARCHIVE_PATH }}.sig" -t "$comment" "${{ env.ARCHIVE_PATH }}" rsign sign -W -s minisign.key -x "${{ env.ARCHIVE_PATH }}.sig" -t "$comment" "${{ env.ARCHIVE_PATH }}"
- name: Upload Artifact - name: Upload Artifact
if: ${{ !startsWith(github.ref, 'refs/tags/') }} if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@@ -190,7 +190,7 @@ jobs:
- if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.target == 'x86_64-unknown-linux-musl' }} - if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.target == 'x86_64-unknown-linux-musl' }}
run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }} run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
- name: "Publish" - name: "Publish"
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.target == 'x86_64-unknown-linux-musl' }} if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.target == 'x86_64-unknown-linux-musl' }}
run: cargo publish --locked --allow-dirty run: cargo publish --locked --allow-dirty

View File

@@ -27,7 +27,7 @@ on:
- run.sh - run.sh
- run.ps1 - run.ps1
schedule: schedule:
- cron: '30 14 * * 1' # every Monday, 9:30 AM CDT - cron: "30 14 * * 1" # every Monday, 9:30 AM CDT
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@@ -36,7 +36,7 @@ jobs:
build: build:
strategy: strategy:
fail-fast: true fail-fast: true
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
@@ -45,8 +45,8 @@ jobs:
artifact: true artifact: true
- os: macos-13 - os: macos-13
target: x86_64-apple-darwin target: x86_64-apple-darwin
# - os: macos-latest # - os: macos-latest
# target: aarch64-apple-darwin # target: aarch64-apple-darwin
- os: windows-latest - os: windows-latest
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
@@ -58,7 +58,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: 1.74 toolchain: 1.79
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Install Linker Tools - name: Install Linker Tools
@@ -85,7 +85,7 @@ jobs:
- name: Run tests - name: Run tests
run: cargo test --verbose --target ${{ matrix.target }} run: cargo test --verbose --target ${{ matrix.target }}
- name: Build - name: Build
if: matrix.artifact if: matrix.artifact
run: cargo build --verbose --target ${{ matrix.target }} run: cargo build --verbose --target ${{ matrix.target }}
@@ -95,4 +95,4 @@ jobs:
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: spotify-quickauth-${{ github.sha }}-${{ matrix.target }} name: spotify-quickauth-${{ github.sha }}-${{ matrix.target }}
path: target/${{ matrix.target }}/debug/spotify-quickauth path: target/${{ matrix.target }}/debug/spotify-quickauth

View File

@@ -3,7 +3,7 @@ name = "spotify-quickauth"
version = "0.1.6" version = "0.1.6"
edition = "2021" edition = "2021"
description = "Quickly authenticate librespot-based applications with Spotify" description = "Quickly authenticate librespot-based applications with Spotify"
rust-version = "1.74" rust-version = "1.79"
authors = ["Ryan Walters <xevion@xevion.dev>"] authors = ["Ryan Walters <xevion@xevion.dev>"]
homepage = "https://github.com/Xevion/spotify-quickauth" homepage = "https://github.com/Xevion/spotify-quickauth"
repository = "https://github.com/Xevion/spotify-quickauth" repository = "https://github.com/Xevion/spotify-quickauth"