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:
inputs:
fail_fast:
description: 'Use fail-fast strategy'
description: "Use fail-fast strategy"
required: false
default: 'true'
default: "true"
verbose:
description: 'Verbose output'
description: "Verbose output"
required: false
default: 'false'
default: "false"
push:
tags:
- 'v*.*.*'
tags:
- "v*.*.*"
# We don't filter by paths here, because we filter by tags, which means we're releasing. All releases should be built.
pull_request:
paths-ignore:
@@ -38,7 +38,7 @@ jobs:
build:
strategy:
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') || github.event.inputs.fail_fast == 'true' }}
matrix:
include:
- os: ubuntu-latest
@@ -74,7 +74,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.74
toolchain: 1.79
targets: ${{ matrix.target }}
- name: Cache Rust dependencies
@@ -88,7 +88,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.target }}-
- name: Install Linker Tools
if: matrix.tools
run: |
@@ -127,7 +127,7 @@ jobs:
echo "ARCHIVE_DIR=$ARCHIVE_DIR" >> $GITHUB_ENV
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
- name: Archive
if: ${{ !contains(matrix.os, 'windows') }}
uses: TheDoctor0/zip-release@0.7.6
@@ -147,13 +147,13 @@ jobs:
directory: ${{ env.ARCHIVE_DIR }}/
path: |
spotify-quickauth.exe
- name: Install rsign2
if: startsWith(github.ref, 'refs/tags/')
uses: taiki-e/install-action@v2
with:
tool: rsign2
- name: Sign Archive
if: startsWith(github.ref, 'refs/tags/')
env:
@@ -162,13 +162,13 @@ jobs:
shell: bash
run: |
echo "$MINISIGN_KEY" > minisign.key
ts=$(node -e 'console.log((new Date).toISOString())')
git=$(git rev-parse HEAD)
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 }}"
- name: Upload Artifact
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v4
@@ -190,7 +190,7 @@ jobs:
- if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.target == 'x86_64-unknown-linux-musl' }}
run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
- name: "Publish"
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.ps1
schedule:
- cron: '30 14 * * 1' # every Monday, 9:30 AM CDT
- cron: "30 14 * * 1" # every Monday, 9:30 AM CDT
env:
CARGO_TERM_COLOR: always
@@ -36,7 +36,7 @@ jobs:
build:
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
@@ -45,8 +45,8 @@ jobs:
artifact: true
- os: macos-13
target: x86_64-apple-darwin
# - os: macos-latest
# target: aarch64-apple-darwin
# - os: macos-latest
# target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc
@@ -58,7 +58,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.74
toolchain: 1.79
targets: ${{ matrix.target }}
- name: Install Linker Tools
@@ -85,7 +85,7 @@ jobs:
- name: Run tests
run: cargo test --verbose --target ${{ matrix.target }}
- name: Build
if: matrix.artifact
run: cargo build --verbose --target ${{ matrix.target }}
@@ -95,4 +95,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
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"
edition = "2021"
description = "Quickly authenticate librespot-based applications with Spotify"
rust-version = "1.74"
rust-version = "1.79"
authors = ["Ryan Walters <xevion@xevion.dev>"]
homepage = "https://github.com/Xevion/spotify-quickauth"
repository = "https://github.com/Xevion/spotify-quickauth"