Skip to content

Commit

Permalink
Add initial GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
petrpavlu committed Sep 24, 2024
1 parent 87d4bf4 commit 665b72c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Continuous integration

on: push

env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
container: opensuse/tumbleweed
strategy:
fail-fast: false
matrix:
toolchain:
- distribution
- stable
- beta
- nightly
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Install the ${{ matrix.toolchain }} Rust toolchain
shell: bash
run: |
if [ ${{ matrix.toolchain }} == distribution ]; then
zypper --non-interactive install cargo rust
else
zypper --non-interactive install rustup
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
fi
- name: Build the project
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

0 comments on commit 665b72c

Please sign in to comment.