niri
Clone
https://git.tahinli.com/Tahinli/niri.git
0 watching0 forksRustGPL-3.012.1 MiB055a94dIvan Molodetskikh1 year ago2247 commits
| 1 | name: Prepare release |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | inputs: |
| 6 | version: |
| 7 | description: 'Public version' |
| 8 | required: true |
| 9 | |
| 10 | concurrency: |
| 11 | group: ${{ github.workflow }} |
| 12 | cancel-in-progress: true |
| 13 | |
| 14 | env: |
| 15 | RUN_SLOW_TESTS: 1 |
| 16 | |
| 17 | jobs: |
| 18 | prepare-release: |
| 19 | runs-on: ubuntu-24.04 |
| 20 | |
| 21 | permissions: |
| 22 | contents: write |
| 23 | |
| 24 | steps: |
| 25 | - uses: actions/checkout@v4 |
| 26 | with: |
| 27 | show-progress: false |
| 28 | |
| 29 | - name: Check for unreplaced "Since:" in the wiki |
| 30 | run: | |
| 31 | if grep --recursive 'Since: next release' wiki; then |
| 32 | exit 1 |
| 33 | fi |
| 34 | |
| 35 | - name: Install dependencies |
| 36 | run: | |
| 37 | sudo apt-get update -y |
| 38 | sudo apt-get install -y curl gcc clang libudev-dev libgbm-dev libxkbcommon-dev libegl1-mesa-dev libwayland-dev libinput-dev libdbus-1-dev libsystemd-dev libseat-dev libpipewire-0.3-dev libpango1.0-dev libdisplay-info-dev libadwaita-1-dev |
| 39 | |
| 40 | - uses: dtolnay/rust-toolchain@stable |
| 41 | |
| 42 | - name: Create vendored dependencies archive |
| 43 | run: | |
| 44 | mkdir .cargo |
| 45 | cargo vendor --locked > .cargo/config.toml |
| 46 | tar cJf niri-${{ github.event.inputs.version }}-vendored-dependencies.tar.xz vendor/ |
| 47 | |
| 48 | - name: Build |
| 49 | run: cargo build --all --frozen --release |
| 50 | |
| 51 | - name: Build tests |
| 52 | run: cargo test --no-run --all --frozen --release |
| 53 | |
| 54 | - name: Test |
| 55 | run: cargo test --all --frozen --release -- --nocapture |
| 56 | |
| 57 | - name: Draft release |
| 58 | uses: softprops/action-gh-release@v2 |
| 59 | with: |
| 60 | draft: true |
| 61 | tag_name: v${{ github.event.inputs.version }} |
| 62 | files: niri-${{ github.event.inputs.version }}-vendored-dependencies.tar.xz |
| 63 | fail_on_unmatched_files: true |