aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yml16
-rw-r--r--.github/workflows/test.yml12
2 files changed, 24 insertions, 4 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 61c8fc3..170ce0f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -9,7 +9,7 @@ jobs:
release:
runs-on: ubuntu-24.04
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
submodules: true
- name: Setup pari
@@ -20,7 +20,19 @@ jobs:
run: |
make
strip ecgen
+ mv ecgen ecgen-release
+ make clean
+ make STATIC=1
+ mv ecgen ecgen-static
+ make clean
+ make DEBUG=1
+ mv ecgen ecgen-debug
+ make clean
+ mv ecgen-release ecgen
- name: Release
uses: softprops/action-gh-release@v2
with:
- files: ecgen
+ files: |
+ ecgen
+ ecgen-static
+ ecgen-debug
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 59de7c8..76d9ecf 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -11,13 +11,21 @@ jobs:
env:
CC: ${{ matrix.CC }}
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
submodules: true
- name: Setup pari
run: |
sudo apt-get update
sudo apt-get install -y libpari-dev pari-gp pari-seadata meson ninja-build
+ - name: Build
+ run: |
+ make
+ make clean
+ make STATIC=1
+ make clean
+ make DEBUG=1
+ make clean
- name: Test
run: |
TEST=1 make unittest
@@ -26,7 +34,7 @@ jobs:
run: |
cd src && find . -name "*.gcda" -exec gcov -pb "{}" +;
- name: Code coverage upload
- uses: codecov/codecov-action@v4
+ uses: codecov/codecov-action@v5
if: ${{ matrix.CC == 'gcc' }}
with:
env_vars: CC