File: rust.yml

package info (click to toggle)
firefox 149.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,767,760 kB
  • sloc: cpp: 7,416,064; javascript: 6,752,859; ansic: 3,774,850; python: 1,250,473; xml: 641,578; asm: 439,191; java: 186,617; sh: 56,634; makefile: 18,856; objc: 13,092; perl: 12,763; pascal: 5,960; yacc: 4,583; cs: 3,846; lex: 1,720; ruby: 1,002; php: 436; lisp: 258; awk: 105; sql: 66; sed: 53; csh: 10; exp: 6
file content (52 lines) | stat: -rw-r--r-- 1,510 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        rust: [stable, nightly]
        os: [ubuntu-24.04, windows-2025, macos-14]
        type: [Release, Debug]

    steps:
    - uses: actions/checkout@v2

    - name: Install Rust
      run: |
        rustup toolchain install ${{ matrix.rust }} --profile minimal
        rustup component add rustfmt --toolchain ${{ matrix.rust }}
        rustup component add clippy --toolchain ${{ matrix.rust }}

    - name: Install Rust (Android target)
      run: rustup target add x86_64-linux-android --toolchain ${{ matrix.rust }}
      if: matrix.os == 'ubuntu-24.04'

    - name: Install Dependencies (Linux)
      run: sudo apt-get update && sudo apt-get install libpulse-dev pulseaudio libdbus-1-dev
      if: matrix.os == 'ubuntu-24.04'

    - name: Check format
      shell: bash
      run: rustup run ${{ matrix.rust }} cargo fmt -- --check

    - name: Clippy
      shell: bash
      run: rustup run ${{ matrix.rust }} cargo clippy -- -D warnings

    - name: Build
      shell: bash
      run: rustup run ${{ matrix.rust }} cargo build --all

    - name: Build (Android)
      shell: bash
      run: rustup run ${{ matrix.rust }} cargo build --target x86_64-linux-android --all
      if: matrix.os == 'ubuntu-24.04'

    - name: Test
      shell: bash
      run: rustup run ${{ matrix.rust }} cargo test --all
      # setrlimit64 error in the CI container
      if: matrix.os != 'ubuntu-24.04'