ci: Replace Github Actions with sr.ht build manifest
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
4feef25aef
commit
5687873d88
21
.build.yml
Normal file
21
.build.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
image: archlinux
|
||||||
|
arch: x86_64
|
||||||
|
packages:
|
||||||
|
- rust
|
||||||
|
- libxcb
|
||||||
|
artifacts:
|
||||||
|
- bwtui/target/release/bwtui
|
||||||
|
sources:
|
||||||
|
- https://git.sr.ht/~c8h4/bwtui
|
||||||
|
environment:
|
||||||
|
RUSTFLAGS: -D warnings
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
tasks:
|
||||||
|
- test: |
|
||||||
|
cd bwtui
|
||||||
|
cargo clippy --no-deps
|
||||||
|
cargo test --all-features --no-fail-fast
|
||||||
|
cargo doc --all-features --no-deps
|
||||||
|
- build: |
|
||||||
|
cd bwtui
|
||||||
|
cargo build --release
|
51
.github/workflows/builds.yml
vendored
51
.github/workflows/builds.yml
vendored
|
@ -1,51 +0,0 @@
|
||||||
name: Release builds
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- dev
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
env:
|
|
||||||
RUSTFLAGS: -D warnings
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
linux-x86_64-release:
|
|
||||||
name: Linux release build (x86_64)
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 5
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Install required system libraries
|
|
||||||
run: |
|
|
||||||
sudo apt-get update \
|
|
||||||
&& sudo apt-get install libxcb-shape0-dev libxcb-xfixes0-dev
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
continue-on-error: false
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
restore-keys: ${{ runner.os }}-cargo-
|
|
||||||
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --release
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: bwtui_linux_x86_64
|
|
||||||
path: target/release/bwtui
|
|
67
.github/workflows/test.yml
vendored
67
.github/workflows/test.yml
vendored
|
@ -1,67 +0,0 @@
|
||||||
name: Test
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- dev
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
env:
|
|
||||||
RUSTFLAGS: -D warnings
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-test:
|
|
||||||
name: Build, test, doc, clippy
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 5
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
toolchain:
|
|
||||||
- stable
|
|
||||||
- nightly
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Install required system libraries
|
|
||||||
run: |
|
|
||||||
sudo apt-get update \
|
|
||||||
&& sudo apt-get install libxcb-shape0-dev libxcb-xfixes0-dev
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: ${{ matrix.toolchain }}
|
|
||||||
components: clippy
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
continue-on-error: false
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
restore-keys: ${{ runner.os }}-cargo-
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
|
|
||||||
- name: Generate rustdoc
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
|
|
||||||
- name: Run clippy
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: clippy
|
|
Loading…
Reference in a new issue