|
1 | 1 | # generated by nickel/ci.ncl; do not manually edit
|
| 2 | +env: |
| 3 | + CARGO_TERM_COLOR: always |
| 4 | + RUSTDOCFLAGS: --deny warnings |
| 5 | + RUSTFLAGS: --deny warnings |
| 6 | +jobs: |
| 7 | + assert_nickels_synced_: |
| 8 | + name: assert_nickels_synced_ |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - name: checkout repo |
| 12 | + uses: actions/checkout@v4 |
| 13 | + with: |
| 14 | + submodules: true |
| 15 | + - name: install nickel |
| 16 | + run: |- |
| 17 | + OUT="$HOME/.local/bin/nickel" |
| 18 | + mkdir -p "$(dirname "$OUT")" |
| 19 | + curl -L "https://github.com/tweag/nickel/releases/download/1.12.2/nickel-pkg-x86_64-linux" -o "$OUT" |
| 20 | + chmod +x "$OUT" |
| 21 | + echo "$(dirname "$OUT")" >> "$GITHUB_PATH" |
| 22 | + nickel --version |
| 23 | + - name: install just |
| 24 | + uses: extractions/setup-just@v2 |
| 25 | + - name: assert nickels synced |
| 26 | + run: |- |
| 27 | + just sync_nickels |
| 28 | + [[ -n $(git status --porcelain) ]] && echo 'nickels are not synced; run `just format_nickels sync_nickels`' && exit 1 || exit 0 |
| 29 | + check_all_features: |
| 30 | + name: check_all_features |
| 31 | + needs: assert_nickels_synced_ |
| 32 | + runs-on: ubuntu-latest |
| 33 | + steps: |
| 34 | + - name: checkout repo |
| 35 | + uses: actions/checkout@v4 |
| 36 | + with: |
| 37 | + submodules: true |
| 38 | + - name: install rust toolchain |
| 39 | + uses: dtolnay/rust-toolchain@master |
| 40 | + with: |
| 41 | + toolchain: stable |
| 42 | + - name: install bevy dependencies |
| 43 | + run: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev |
| 44 | + shell: bash |
| 45 | + - name: populated target directory from cache |
| 46 | + uses: Leafwing-Studios/cargo-cache@v2 |
| 47 | + with: |
| 48 | + sweep-cache: true |
| 49 | + - name: install just |
| 50 | + uses: extractions/setup-just@v2 |
| 51 | + - name: install binstall |
| 52 | + uses: cargo-bins/cargo-binstall@main |
| 53 | + - name: install cargo all features |
| 54 | + run: cargo binstall --no-confirm --continue-on-failure cargo-all-features |
| 55 | + - name: check all features |
| 56 | + run: just check_all_features |
| 57 | + clippy: |
| 58 | + name: clippy |
| 59 | + needs: assert_nickels_synced_ |
| 60 | + runs-on: ubuntu-latest |
| 61 | + steps: |
| 62 | + - name: checkout repo |
| 63 | + uses: actions/checkout@v4 |
| 64 | + with: |
| 65 | + submodules: true |
| 66 | + - name: install rust toolchain |
| 67 | + uses: dtolnay/rust-toolchain@master |
| 68 | + with: |
| 69 | + components: clippy |
| 70 | + toolchain: nightly |
| 71 | + - name: install bevy dependencies |
| 72 | + run: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev |
| 73 | + shell: bash |
| 74 | + - name: populated target directory from cache |
| 75 | + uses: Leafwing-Studios/cargo-cache@v2 |
| 76 | + with: |
| 77 | + sweep-cache: true |
| 78 | + - name: install just |
| 79 | + uses: extractions/setup-just@v2 |
| 80 | + - name: run clippy |
| 81 | + run: just clippy |
| 82 | + docs: |
| 83 | + name: docs |
| 84 | + needs: assert_nickels_synced_ |
| 85 | + runs-on: ubuntu-latest |
| 86 | + steps: |
| 87 | + - name: checkout repo |
| 88 | + uses: actions/checkout@v4 |
| 89 | + with: |
| 90 | + submodules: true |
| 91 | + - name: install rust toolchain |
| 92 | + uses: dtolnay/rust-toolchain@master |
| 93 | + with: |
| 94 | + toolchain: nightly |
| 95 | + - name: install bevy dependencies |
| 96 | + run: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev |
| 97 | + shell: bash |
| 98 | + - name: populated target directory from cache |
| 99 | + uses: Leafwing-Studios/cargo-cache@v2 |
| 100 | + with: |
| 101 | + sweep-cache: true |
| 102 | + - name: install just |
| 103 | + uses: extractions/setup-just@v2 |
| 104 | + - name: check docs |
| 105 | + run: just doc |
| 106 | + format: |
| 107 | + name: format |
| 108 | + needs: assert_nickels_synced_ |
| 109 | + runs-on: ubuntu-latest |
| 110 | + steps: |
| 111 | + - name: checkout repo |
| 112 | + uses: actions/checkout@v4 |
| 113 | + with: |
| 114 | + submodules: true |
| 115 | + - name: install rust toolchain |
| 116 | + uses: dtolnay/rust-toolchain@master |
| 117 | + with: |
| 118 | + components: rustfmt |
| 119 | + toolchain: nightly |
| 120 | + - name: install just |
| 121 | + uses: extractions/setup-just@v2 |
| 122 | + - name: run format |
| 123 | + run: just format -- --check |
| 124 | + test: |
| 125 | + name: test |
| 126 | + needs: assert_nickels_synced_ |
| 127 | + runs-on: ubuntu-latest |
| 128 | + steps: |
| 129 | + - name: checkout repo |
| 130 | + uses: actions/checkout@v4 |
| 131 | + with: |
| 132 | + submodules: true |
| 133 | + - name: install rust toolchain |
| 134 | + uses: dtolnay/rust-toolchain@master |
| 135 | + with: |
| 136 | + toolchain: stable |
| 137 | + - name: install bevy dependencies |
| 138 | + run: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev |
| 139 | + shell: bash |
| 140 | + - name: populated target directory from cache |
| 141 | + uses: Leafwing-Studios/cargo-cache@v2 |
| 142 | + with: |
| 143 | + sweep-cache: true |
| 144 | + - name: install just |
| 145 | + uses: extractions/setup-just@v2 |
| 146 | + - name: run tests |
| 147 | + run: just test |
| 148 | +name: ci |
| 149 | +on: push |
0 commit comments