Debian Codegraph @

debian/rust-vendor/filetime/.github/workflows/main.yml

raw
1 name: CI
2 on: [push, pull_request]
3
4 jobs:
5 test:
6 name: Test
7 runs-on: ${{ matrix.os }}
8 strategy:
9 matrix:
10 build: [stable, beta, nightly, macos, win32, win64, mingw]
11 include:
12 - build: stable
13 os: ubuntu-latest
14 rust: stable
15 - build: beta
16 os: ubuntu-latest
17 rust: beta
18 - build: nightly
19 os: ubuntu-latest
20 rust: nightly
21 - build: macos
22 os: macos-latest
23 rust: stable
24 - build: win32
25 os: windows-latest
26 rust: stable-i686
27 - build: win64
28 os: windows-latest
29 rust: stable-x86_64
30 - build: mingw
31 os: windows-latest
32 rust: stable-x86_64-gnu
33 steps:
34 - uses: actions/checkout@master
35 - name: Install Rust (rustup)
36 run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
37 shell: bash
38 - run: cargo test
39
40 msrv:
41 name: MSRV
42 runs-on: ubuntu-latest
43 steps:
44 - uses: actions/checkout@master
45 - name: Install Rust
46 run: rustup update 1.75.0 && rustup default 1.75.0
47 - run: cargo build
48
49 rustfmt:
50 name: Rustfmt
51 runs-on: ubuntu-latest
52 steps:
53 - uses: actions/checkout@master
54 - name: Install Rust
55 run: rustup update stable && rustup default stable && rustup component add rustfmt
56 - run: cargo fmt -- --check
57
58 build:
59 name: Build for Android and Redox
60 runs-on: ubuntu-latest
61 strategy:
62 matrix:
63 target: [x86_64-linux-android, x86_64-unknown-redox]
64 steps:
65 - uses: actions/checkout@master
66 - name: Install Rust
67 run: rustup update stable && rustup default stable && rustup target add ${{ matrix.target }}
68 - run: cargo build --target ${{ matrix.target }}
69
70 publish_docs:
71 name: Publish Documentation
72 runs-on: ubuntu-latest
73 steps:
74 - uses: actions/checkout@master
75 - name: Install Rust
76 run: rustup update stable && rustup default stable
77 - name: Build documentation
78 run: cargo doc --no-deps --all-features
79 - name: Publish documentation
80 run: |
81 cd target/doc
82 git init
83 git add .
84 git -c user.name='ci' -c user.email='ci' commit -m init
85 git push -f -q https://git:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages
86 if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'