1
0
Fork 0
forked from wry/wry

infra: update ci scripts

This commit is contained in:
Julian Orth 2022-05-04 17:56:24 +02:00
parent 8517df1a38
commit c56ec14345
4 changed files with 46 additions and 4 deletions

11
.builds/build.yml Normal file
View file

@ -0,0 +1,11 @@
image: archlinux
sources:
- https://github.com/mahkoh/jay
tasks:
- install: |
sudo pacman -S --noconfirm rustup libinput pango mesa libxkbcommon
rustup toolchain install stable
- build: |
cd jay
export RUSTC_BOOTSTRAP=1
cargo build

View file

@ -3,14 +3,17 @@ sources:
- https://github.com/mahkoh/jay
tasks:
- install: |
sudo pacman -S rustup
sudo pacman -S --noconfirm rustup libinput pango mesa libxkbcommon xorg-xwayland adwaita-icon-theme libxcursor
rustup toolchain install stable
rustup default stable
- configure: |
sudo rmmod bochs
sudo modprobe vkms
sudo chmod o+rw /dev/dri/card*
- build: |
cd jay
export RUSTC_BOOTSTRAP=1
cargo build --features it
- test: |
cd jay
export RUSTC_BOOTSTRAP=1
export RUST_BACKTRACE=1
cargo run --features it -- run-tests
./target/debug/jay run-tests

27
.github/workflows/rustfmt.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: rustfmt
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Show env
run: |
uname -a
ldd --version
- name: Install
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
rustup toolchain install nightly --allow-downgrade -c rustfmt
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Check
run: cargo +nightly fmt -- --check

1
.gitignore vendored
View file

@ -2,5 +2,6 @@
!.gitignore
!/.cargo
!/.builds
!/.github
/target
/testruns