Update ci.yml #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Full history to be able to determine version number | |
- name: Install build dependencies | |
run: sudo apt-get install -y libusb-1.0-0-dev libsystemd-dev libev-dev libfmt-dev libinih-dev | |
- name: Bootstrap | |
run: sh bootstrap.sh | |
- name: Configure | |
run: ./configure | |
- name: Build | |
run: make | |
- name: Run check | |
run: make check | |
- name: Test install | |
run: sudo make install | |
debian: | |
strategy: | |
matrix: | |
release: [stable, oldstable, testing] | |
runs-on: ubuntu-latest | |
container: debian:${{ matrix.release }}-slim | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Full history to be able to determine version number | |
- name: Merge into debian branch | |
run: sudo apt-get install -y git && git checkout debian && git merge ${{ github.ref }} | |
- name: Build and install | |
run: sudo install-debian.sh |