Skip to content

iOS: Handle universal links and bump version to 0.10.2 #153

iOS: Handle universal links and bump version to 0.10.2

iOS: Handle universal links and bump version to 0.10.2 #153

Workflow file for this run

name: Server CI/CD
on:
push:
branches: [main]
paths:
- 'server/**'
- '.github/workflows/server.yml'
pull_request:
branches: [main]
paths:
- 'server/**'
- '.github/workflows/server.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: Rustfmt & Clippy
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.93.1
components: rustfmt, clippy
- name: Cache cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
server/target
key: ${{ runner.os }}-cargo-${{ hashFiles('server/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Rustfmt
run: cargo fmt -- --check
working-directory: server
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
working-directory: server
build:
name: Build and Test Server
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.93.1
- name: Cache cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
server/target
key: ${{ runner.os }}-cargo-${{ hashFiles('server/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run Tests
run: cargo test --all --verbose
working-directory: server
- name: Build Release
run: cargo build --release --verbose
working-directory: server