Update ci.yml #41
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: "*" | |
pull_request: | |
branches: "*" | |
permissions: {} | |
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 update && 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 | |
build_alpine: | |
runs-on: ubuntu-latest | |
container: alpine | |
steps: | |
- name: Install build dependencies | |
run: apk update && apk add autoconf automake libtool git libusb-dev pkgconf libev-dev fmt-dev inih-dev | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Full history to be able to determine version number | |
- name: Bootstrap | |
run: sh bootstrap.sh | |
- name: Configure | |
run: ./configure | |
- name: Build | |
run: make | |
- name: Run check | |
run: make check | |
- name: Test install | |
run: make install | |
build_cross_mips: | |
runs-on: ubuntu-latest | |
container: dockcross/linux-mips | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Full history to be able to determine version number | |
- name: Configure git in container | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Install build dependencies | |
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libev-dev libfmt-dev libinih-dev | |
- name: Bootstrap | |
run: sh bootstrap.sh | |
- name: Configure | |
run: ./configure --host=mips --disable-systemd | |
- name: Build | |
run: make | |
- name: Run check | |
run: make check | |
- name: Test install | |
run: sudo make install | |
deb_package: | |
strategy: | |
fail-fast: false | |
matrix: | |
release: [testing, stable, oldstable] | |
runs-on: ubuntu-latest | |
container: debian:${{ matrix.release }}-slim | |
steps: | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y --no-install-recommends ca-certificates git sudo | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Full history to be able to determine version number | |
- name: Configure git in container | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
git config --global user.name "Your Name" | |
git config --global user.email "[email protected]" | |
- name: Merge into debian branch | |
run: git checkout debian && git merge "$GITHUB_REF" | |
- name: Build and install | |
run: sh install-debian.sh |