Skip to content

Code cleanup, remove arm mac build #117

Code cleanup, remove arm mac build

Code cleanup, remove arm mac build #117

Workflow file for this run

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/[email protected]
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