From 283f06f265f2af2f3d63b72503732c7c2d5b1bef Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Tue, 8 Oct 2024 05:19:18 -0600 Subject: [PATCH] CI improvements --- .github/workflows/ci.yml | 18 +++++++++++++----- bootstrap/lib.h | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d54e8d..a63a4fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: System information - run: uname -a + run: | + uname -a + lsb_release -a + clang -v - name: Build and test run: | ./project.sh test all @@ -26,13 +29,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: System information - run: uname -a - - name: MacOS version - run: sw_vers -productVersion - name: Install LLVM run: | brew install llvm + - name: System information + run: | + uname -a + sw_vers -productVersion + clang -v - name: Build and test run: | ./project.sh test all @@ -42,6 +46,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: System information + run: | + systeminfo + clang -v - name: Build and test run: | ./project.bat test all diff --git a/bootstrap/lib.h b/bootstrap/lib.h index c62bb09..6028098 100644 --- a/bootstrap/lib.h +++ b/bootstrap/lib.h @@ -2290,7 +2290,7 @@ fn uint32_t pow5_factor(uint64_t value) } // Returns true if value is divisible by 5^p. -fn bool multiple_of_power_of_5(const uint64_t value, const uint32_t p) +fn u8 multiple_of_power_of_5(const uint64_t value, const uint32_t p) { // I tried a case distinction on p, but there was no performance difference. return pow5_factor(value) >= p;