Skip to content

Commit 8659a01

Browse files
committed
ci: Add release job
The new job runs checks outlined in the `doc/release-process.md`.
1 parent f9b3889 commit 8659a01

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -780,3 +780,27 @@ jobs:
780780
run: |
781781
cd sage
782782
sage prove_group_implementations.sage
783+
784+
release:
785+
runs-on: ubuntu-latest
786+
787+
steps:
788+
- name: Checkout
789+
uses: actions/checkout@v4
790+
791+
- run: ./autogen.sh && ./configure --enable-dev-mode && make distcheck
792+
793+
- name: Check installation with Autotools
794+
env:
795+
CI_INSTALL: ${{ runner.temp }}/${{ github.run_id }}${{ github.action }}
796+
run: |
797+
./autogen.sh && ./configure --prefix=${{ env.CI_INSTALL }} && make clean && make install && ls -RlAh ${{ env.CI_INSTALL }}
798+
gcc -o ecdsa examples/ecdsa.c $(PKG_CONFIG_PATH=${{ env.CI_INSTALL }}/lib/pkgconfig pkg-config --cflags --libs libsecp256k1) -Wl,-rpath,"${{ env.CI_INSTALL }}/lib" && ./ecdsa
799+
800+
- name: Check installation with CMake
801+
env:
802+
CI_BUILD: ${{ runner.temp }}/${{ github.run_id }}${{ github.action }}/build
803+
CI_INSTALL: ${{ runner.temp }}/${{ github.run_id }}${{ github.action }}/install
804+
run: |
805+
cmake -B ${{ env.CI_BUILD }} -DCMAKE_INSTALL_PREFIX=${{ env.CI_INSTALL }} && cmake --build ${{ env.CI_BUILD }} --target install && ls -RlAh ${{ env.CI_INSTALL }}
806+
gcc -o ecdsa examples/ecdsa.c -I ${{ env.CI_INSTALL }}/include -L ${{ env.CI_INSTALL }}/lib*/ -l secp256k1 -Wl,-rpath,"${{ env.CI_INSTALL }}/lib",-rpath,"${{ env.CI_INSTALL }}/lib64" && ./ecdsa

0 commit comments

Comments
 (0)