File: ci.yml

package info (click to toggle)
rust-glow 0.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,112 kB
  • sloc: makefile: 4
file content (87 lines) | stat: -rw-r--r-- 2,589 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI

on:
  push:
    branches-ignore: [staging.tmp]
  pull_request:
    branches-ignore: [staging.tmp]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        build: [pinned, stable, beta, nightly, macos, windows]
        include:
        - build: pinned
          os: ubuntu-latest
          rust: 1.73.0
          sdl: true
        - build: stable
          os: ubuntu-latest
          rust: stable
          sdl: true
        - build: beta
          os: ubuntu-latest
          rust: beta
          sdl: true
        - build: nightly
          os: ubuntu-latest
          rust: nightly
          sdl: true
        - build: macos
          os: macos-latest
          rust: stable
          sdl: false
        - build: windows
          os: windows-latest
          rust: stable
          sdl: false
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Install toolchain
      uses: actions-rs/toolchain@v1
      with:
        toolchain: ${{ matrix.rust }}
        override: true
        profile: minimal
        target: wasm32-unknown-unknown
    - run: cargo build --verbose
    - run: cargo build --verbose --target wasm32-unknown-unknown
      env:
        RUSTFLAGS: --cfg=web_sys_unstable_apis 
    - run: cargo test --verbose
    - run: (cd examples/hello && cargo build --features glutin_winit)
    - run: (cd examples/hello && cargo build --target wasm32-unknown-unknown)
    - name: sdl
      if: ${{ matrix.sdl == true }}
      run: |
        sudo apt-get -qq update
        sudo apt-get -qq install libsdl2-dev
        cargo build --verbose
        (cd examples/hello && cargo build --features sdl2)
    - name: android
      if: matrix.build == 'stable'
      run: |
        rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android
        cargo build --verbose --target aarch64-linux-android
        cargo build --verbose --target armv7-linux-androideabi
        cargo build --verbose --target x86_64-linux-android
  lint:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Check fmt
        run: cargo fmt --check
      - name: Install phosphorus from crates.io
        uses: baptiste0928/cargo-install@v3
        with:
          crate: phosphorus
          version: '0.0.22'
      - name: Test reproducability of gl46.rs
        run: bash generate-native.sh
      - uses: infotroph/tree-is-clean@v1
        with:
          check_untracked: true