From c729c6433f78931840f384daf0b357eea06e86af Mon Sep 17 00:00:00 2001 From: iff Date: Sat, 14 Dec 2024 20:16:48 +0100 Subject: [PATCH] ci: add build and test --- .github/workflows/build.yaml | 3 +++ .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 63d6829..1fb39a9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,10 +4,13 @@ on: push: tags: - v* + permissions: contents: write + env: CARGO_INCREMENTAL: 0 + jobs: build: name: ${{ matrix.target }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..0711cd6 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + CARGO_INCREMENTAL: 0 + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose +