Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the CI in fedora #47

Merged
merged 3 commits into from
Dec 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,27 @@ jobs:
run: |
cd out/bench
../../bench.sh alla allt no-iso
build-all-fedora:
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install and build all benchmarks and allocators
# mi and mesh: error: '__malloc_hook' was not declared in this scope;
run: ./build-bench-env.sh all no-lean no-mi no-mesh no-nomesh
- name: Run everything.
run: |
cd out/bench
../../bench.sh alla allt no-iso
build-all-osx:
runs-on: macos-11
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Silence some git warnings
run: git config --global advice.detachedHead false
- name: Install and build all benchmarks and allocators
run: ./build-bench-env.sh all no-lean
- name: Run everything.
Expand Down
10 changes: 5 additions & 5 deletions build-bench-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ version_mallocng=master
version_mesh=7ef171c7870c8da1c52ff3d78482421f46beb94c
version_mi=v1.7.3
version_nomesh=7ef171c7870c8da1c52ff3d78482421f46beb94c
version_rp=1.4.3
version_rp=4c10723
version_sc=v1.0.0
version_scudo=main
version_sm=709663f
Expand Down Expand Up @@ -277,9 +277,9 @@ function aptinstall {

function dnfinstall {
echo ""
echo "> sudo dnf install $1"
echo "> sudo dnf -y --quiet --nodocs install $1"
echo ""
sudo dnf install $1
sudo dnf -y --quiet --nodocs install $1
}

function brewinstall {
Expand All @@ -304,8 +304,8 @@ if test "$setup_packages" = "1"; then
phase "install packages"
if grep -q 'ID=fedora' /etc/os-release 2>/dev/null; then
# no 'apt update' equivalent needed on Fedora
dnfinstall "gcc-c++ clang lld llvm-dev unzip dos2unix bc gmp-devel wget"
dnfinstall "cmake python3 ruby ninja-build libtool autoconf"
dnfinstall "gcc-c++ clang lld llvm-devel unzip dos2unix bc gmp-devel wget"
dnfinstall "cmake python3 ruby ninja-build libtool autoconf git patch time"
elif grep -q -e 'ID=debian' -e 'ID=ubuntu' /etc/os-release 2>/dev/null; then
echo "updating package database... (sudo apt update)"
sudo apt update
Expand Down