add rpm build path for fedora38 #5
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: C/C++ CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build-libchardet-fedora-38: | |
name: "Fedora 38 - Build Chardet with all dependencies" | |
runs-on: ubuntu-latest | |
container: "fedora:38" | |
steps: | |
- name: "Show Head Commit" | |
env: | |
CONTENT: ${{ toJSON(github.event.head_commit) }} | |
run: echo "$CONTENT" | |
- name: "update packages" | |
run: dnf update -y | |
- name: "install sudo,git" | |
run: dnf install -y sudo git automake make autoconf m4 libtool gcc gcc-c++ procps jq jo rpm-build rpm-sign | |
- name: "change rpm build path" | |
run: mkdir -p $HOME/.rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} && echo "%_topdir $HOME/.rpmbuild" > $HOME/.rpmmacros | |
- name: "System Information" | |
run: | | |
echo === uname === | |
uname -a | |
echo === /etc/os-release === | |
cat /etc/os-release | |
echo === df -hl === | |
df -hl | |
echo === nproc === | |
nproc || true | |
echo === free -h === | |
free -h | |
echo === top === | |
top -b -n1 -1 -Eg || timeout 1 top -b -n1 | |
echo === env === | |
env | |
echo === gcc -v === | |
gcc -v | |
- name: "checkout sources" | |
uses: actions/checkout@v3 | |
- name: autogen | |
run: ./autogen.sh | |
- name: configure | |
run: ./configure | |
- name: make | |
run: make | |
- name: make check | |
run: make check | |
- name: make distcheck | |
run: make distcheck | |
- name: make rpm | |
run: make rpm |