Update ci.yml #44
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 -j$(nproc) | |
- name: Install | |
run: sudo make -j1 install | |
build_alpine: | |
runs-on: ubuntu-latest | |
container: alpine | |
steps: | |
- name: Install build dependencies | |
run: apk update && apk add git build-base autoconf automake libtool argp-standalone linux-headers libusb-dev libev-dev fmt-dev inih-dev | |
- 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: Bootstrap | |
run: sh bootstrap.sh | |
- name: Configure | |
run: ./configure --disable-systemd | |
- name: Build | |
run: make -j$(nproc) | |
- name: Install | |
run: make -j1 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 -j$(nproc) | |
- name: Install | |
run: sudo make -j1 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 "you@example.com" | |
- name: Merge into debian branch | |
run: git checkout debian && git merge "$GITHUB_REF" | |
- name: Build and install | |
run: sh install-debian.sh |