Bump cached from 0.46.0 to 0.46.1 #119
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: On Pull Request To Main | |
on: | |
pull_request: | |
paths: | |
- "**.rs" | |
- "**/Cargo.lock" | |
- "**/Cargo.toml" | |
- "**/package.json" | |
- "**.svelte" | |
- "**.js" | |
- "**.ts" | |
branches: | |
- main | |
env: | |
CLICOLOR_FORCE: 1 | |
jobs: | |
pre-merge: | |
name: Pre-merge checks | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
target: [x86_64-unknown-linux-gnu, x86_64-apple-darwin] | |
rust: [stable] | |
exclude: | |
- os: ubuntu-latest | |
target: x86_64-apple-darwin | |
- os: macos-latest | |
target: x86_64-unknown-linux-gnu | |
env: | |
RUST_BACKTRACE: full | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: ${{ runner.target }}-rust-cache | |
- name: Install ${{ matrix.target }} packages (ubuntu-latest) | |
if: matrix.target == 'x86_64-unknown-linux-gnu' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libunwind-dev libgstreamer1.0-dev | |
- name: Install packages (macos-latest) | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install gstreamer | |
- name: Install Rust Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: ${{ matrix.target }} | |
components: rustfmt, clippy | |
override: true | |
- name: Install Cargo Plugins | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-make cargo-insta sqlx-cli | |
- name: Create db file | |
run: "touch /tmp/data.db && cd hifirs && cargo sqlx database reset -y" | |
env: | |
DATABASE_URL: "sqlite:///tmp/data.db" | |
- name: Run CI Flow | |
uses: actions-rs/cargo@v1 | |
env: | |
QOBUZ_USERNAME: ${{secrets.QOBUZ_USERNAME}} | |
QOBUZ_PASSWORD: ${{secrets.QOBUZ_PASSWORD}} | |
DATABASE_URL: "sqlite:///tmp/data.db" | |
with: | |
command: make | |
args: ci-flow |