From bf07af4f439eb0c50c3bc0ecf3b2f350ed22a554 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Sun, 21 Apr 2024 11:55:24 +0200 Subject: [PATCH] ci: run build test on github --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..4c8bd003 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Show env + run: | + uname -a + ldd --version + env + - name: Install + run: | + sudo apt update + sudo apt install -y libinput10-dev libpangocairo-1.0-0-dev libudev1-dev libxkbcommon0-dev + curl https://sh.rustup.rs -sSf | sh -s -- -y + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + - name: Fixup opt levels + run: | + sed -i 's/opt-level = 3/opt-level = 0/' Cargo.toml + cat Cargo.toml + - name: Build + run: cargo build --timings + - name: Archive cargo-timings + uses: actions/upload-artifact@v4 + with: + name: cargo-timings + path: | + target/cargo-timings