Skip to content

Commit

Permalink
Merge bitcoin-core/secp256k1#1413: ci: Add release job
Browse files Browse the repository at this point in the history
8659a01 ci: Add `release` job (Hennadii Stepanov)
f9b3889 ci: Update `actions/checkout` version (Hennadii Stepanov)

Pull request description:

  This PR introduces a new "Release" job that conducts sanity checks as defined in [`doc/release-process.md`](https://github.com/bitcoin-core/secp256k1/blob/master/doc/release-process.md#sanity-checks).

ACKs for top commit:
  sipa:
    ACK 8659a01
  real-or-random:
    ACK 8659a01

Tree-SHA512: 84e03fa07f8c41aec0f6d1ccb4ac3643e85d370ef7e388b335365deadb555f2d9ef7e5d80e1255a18e790a774e04ca66f265b9441402b183d4c535a97688f20f
  • Loading branch information
real-or-random committed Sep 4, 2023
2 parents 727bec5 + 8659a01 commit 0b4640a
Showing 1 changed file with 40 additions and 16 deletions.
56 changes: 40 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
env: ${{ matrix.configuration.env_vars }}
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
uses: ./.github/actions/run-in-docker-action
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
uses: ./.github/actions/run-in-docker-action
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
env: ${{ matrix.configuration.env_vars }}
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
env: ${{ matrix.configuration.env_vars }}
Expand Down Expand Up @@ -340,7 +340,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
uses: ./.github/actions/run-in-docker-action
Expand Down Expand Up @@ -393,7 +393,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
env: ${{ matrix.configuration.env_vars }}
Expand Down Expand Up @@ -448,7 +448,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
env: ${{ matrix.configuration.env_vars }}
Expand Down Expand Up @@ -504,7 +504,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
env: ${{ matrix.configuration.env_vars }}
Expand Down Expand Up @@ -558,7 +558,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
env: ${{ matrix.configuration.env_vars }}
Expand Down Expand Up @@ -612,7 +612,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Homebrew packages
run: |
Expand Down Expand Up @@ -667,7 +667,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate buildsystem
run: cmake -E env CFLAGS="/WX ${{ matrix.configuration.cpp_flags }}" cmake -B build -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON ${{ matrix.configuration.cmake_options }}
Expand Down Expand Up @@ -695,7 +695,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Add cl.exe to PATH
uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -721,7 +721,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
uses: ./.github/actions/run-in-docker-action
Expand Down Expand Up @@ -754,7 +754,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
uses: ./.github/actions/run-in-docker-action
Expand All @@ -774,9 +774,33 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI script
run: |
cd sage
sage prove_group_implementations.sage
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- run: ./autogen.sh && ./configure --enable-dev-mode && make distcheck

- name: Check installation with Autotools
env:
CI_INSTALL: ${{ runner.temp }}/${{ github.run_id }}${{ github.action }}
run: |
./autogen.sh && ./configure --prefix=${{ env.CI_INSTALL }} && make clean && make install && ls -RlAh ${{ env.CI_INSTALL }}
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
- name: Check installation with CMake
env:
CI_BUILD: ${{ runner.temp }}/${{ github.run_id }}${{ github.action }}/build
CI_INSTALL: ${{ runner.temp }}/${{ github.run_id }}${{ github.action }}/install
run: |
cmake -B ${{ env.CI_BUILD }} -DCMAKE_INSTALL_PREFIX=${{ env.CI_INSTALL }} && cmake --build ${{ env.CI_BUILD }} --target install && ls -RlAh ${{ env.CI_INSTALL }}
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 comments on commit 0b4640a

Please sign in to comment.