diff --git a/.builds/unit-tests.yml b/.builds/unit-tests.yml new file mode 100644 index 00000000..596570b9 --- /dev/null +++ b/.builds/unit-tests.yml @@ -0,0 +1,12 @@ +image: archlinux +sources: + - https://github.com/mahkoh/jay +tasks: + - install: | + sudo pacman -Syu --noconfirm + sudo pacman -S --noconfirm rustup libinput pango mesa libxkbcommon xorg-xwayland adwaita-icon-theme libxcursor + rustup toolchain install stable + - test: | + cd jay + export RUSTC_BOOTSTRAP=1 + cargo test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 55c0108e..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: test - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: - -env: - CARGO_TERM_COLOR: always - -jobs: - test: - 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: Test - run: cargo +nightly test