diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d716838..f6bac3e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 \ No newline at end of file + run: cargo publish --locked --allow-dirty diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1ce25b4..3fe75b4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 \ No newline at end of file + path: target/${{ matrix.target }}/debug/spotify-quickauth diff --git a/Cargo.toml b/Cargo.toml index 84388d2..341aa87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] homepage = "https://github.com/Xevion/spotify-quickauth" repository = "https://github.com/Xevion/spotify-quickauth"