![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [nixbuild/nix-quick-install-action](https://github.com/nixbuild/nix-quick-install-action) from 26 to 27. - [Release notes](https://github.com/nixbuild/nix-quick-install-action/releases) - [Changelog](https://github.com/nixbuild/nix-quick-install-action/blob/master/RELEASE) - [Commits](https://github.com/nixbuild/nix-quick-install-action/compare/v26...v27) --- updated-dependencies: - dependency-name: nixbuild/nix-quick-install-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
67 lines
1.6 KiB
YAML
67 lines
1.6 KiB
YAML
name: Release app
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v[0-9]+.*
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_PROFILE_RELEASE_LTO: true
|
|
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1
|
|
|
|
jobs:
|
|
check:
|
|
name: Check project
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Install Rust toolchain
|
|
run: rustup toolchain install stable --profile minimal --component clippy --component rustfmt
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Format
|
|
run: cargo fmt --check
|
|
- name: Clippy
|
|
run: cargo clippy -- -W clippy::pedantic
|
|
|
|
create-release:
|
|
needs: check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: taiki-e/create-gh-release-action@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
upload-assets:
|
|
needs: create-release
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
- windows-latest
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: taiki-e/upload-rust-binary-action@v1
|
|
with:
|
|
bin: hoyolab-claim-bot
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
nix-cachix:
|
|
needs: check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: nixbuild/nix-quick-install-action@v27
|
|
- uses: cachix/cachix-action@v14
|
|
with:
|
|
name: ataraxiadev-foss
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
- run: nix run github:Mic92/nix-fast-build -- --no-nom --skip-cached -f .#packages.x86_64-linux.hoyolab-claim-bot
|