infra: update ci scripts
This commit is contained in:
parent
8517df1a38
commit
c56ec14345
4 changed files with 46 additions and 4 deletions
11
.builds/build.yml
Normal file
11
.builds/build.yml
Normal 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
|
||||
|
|
@ -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
27
.github/workflows/rustfmt.yml
vendored
Normal 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
1
.gitignore
vendored
|
|
@ -2,5 +2,6 @@
|
|||
!.gitignore
|
||||
!/.cargo
|
||||
!/.builds
|
||||
!/.github
|
||||
/target
|
||||
/testruns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue