ci: Add c9s build #15
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: Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
build-c9s: | |
name: "Build (C9S)" | |
runs-on: ubuntu-latest | |
container: quay.io/centos/centos:stream9 | |
steps: | |
- name: Install bootstrap dependencies | |
run: dnf -y install git-core dnf-utils | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# https://github.com/actions/checkout/issues/760 | |
- name: Mark git checkout as safe | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Install build dependencies | |
run: dnf config-manager --enable crb && dnf builddep -y ostree | |
- name: Build | |
run: | | |
env NOCONFIGURE=1 ./autogen.sh && | |
./configure --with-curl --with-selinux --with-dracut=yesbutnoconf --with-composefs && | |
make -j 4 && make install DESTDIR=$(pwd)/install && tar -c -C install --zstd -f inst.tar.zst . | |
- name: Upload binary | |
uses: actions/upload-artifact@v2 | |
with: | |
name: inst-c9s.tar.zst | |
path: inst.tar.zst |