diff --git a/.builds/build.yml b/.builds/build.yml new file mode 100644 index 00000000..113f1969 --- /dev/null +++ b/.builds/build.yml @@ -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 diff --git a/.builds/openbsd.yml b/.builds/test.yml similarity index 50% rename from .builds/openbsd.yml rename to .builds/test.yml index 7b060121..a55f6eee 100644 --- a/.builds/openbsd.yml +++ b/.builds/test.yml @@ -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 diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml new file mode 100644 index 00000000..1d62498b --- /dev/null +++ b/.github/workflows/rustfmt.yml @@ -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 diff --git a/.gitignore b/.gitignore index 54919650..c9512ea7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ !.gitignore !/.cargo !/.builds +!/.github /target /testruns