Skip to content

Commit 0e132f0

Browse files
committed
experiment with github actions
1 parent 158657e commit 0e132f0

File tree

1 file changed

+24
-56
lines changed

1 file changed

+24
-56
lines changed

.github/workflows/test.yml

+24-56
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,30 @@
11
name: GitHub Actions Demo
22
on: [push]
3+
env:
4+
SECP256K1_REMOTE: "https://github.com/bitcoin-core/secp256k1.git"
5+
SECP256K1_COMMIT: efad3506a8937162e8010f5839fdf3771dfcf516
6+
SECP256K1_CONFIGURE: "--enable-module-ecdh --enable-module-recovery --enable-module-schnorrsig --enable-module-extrakeys"
7+
EXT_SECP256K1_CONFIGURE: "--with-secp256k1-config --with-module-recovery --with-module-ecdh --with-module-schnorrsig --with-module-extrakeys"
38
jobs:
4-
Explore-GitHub-Actions:
9+
test:
510
runs-on: ubuntu-latest
611
steps:
7-
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
8-
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
9-
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
10-
- name: Check out repository code
12+
- name: Checkout code
1113
uses: actions/checkout@v2
12-
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
13-
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
14-
- name: List files in the repository
15-
run: |
16-
ls ${{ github.workspace }}
17-
- run: echo "🍏 This job's status is ${{ job.status }}."
18-
19-
#on:
20-
# # Trigger the workflow on push or pull request,
21-
# # but only for the main branch
22-
# push:
23-
# branches:
24-
# - master
25-
# pull_request:
26-
# branches:
27-
# - master
28-
# # Also trigger on page_build, as well as release created events
29-
# page_build:
30-
# release:
31-
# types: # This configuration does not affect the page_build event above
32-
# - created
33-
#
34-
#env:
35-
# SECP256K1_REMOTE: "https://github.com/bitcoin-core/secp256k1.git"
36-
# SECP256K1_COMMIT: efad3506a8937162e8010f5839fdf3771dfcf516
37-
# SECP256K1_CONFIGURE: "--enable-module-ecdh --enable-module-recovery --enable-module-schnorrsig --enable-module-extrakeys"
38-
# EXT_SECP256K1_CONFIGURE: "--with-secp256k1-config --with-module-recovery --with-module-ecdh --with-module-schnorrsig --with-module-extrakeys"
39-
#
40-
#jobs:
41-
# test:
42-
# runs-on: ubuntu-latest
43-
# steps:
44-
# - name: Checkout code
45-
# uses: actions/checkout@v2
46-
# - run: ./gradlew check --info
47-
# - run: git clone https://github.com/bitcoin-core/secp256k1.git libsecp256k1
48-
# - run: cd libsecp256k1 && git checkout efad3506a8937162e8010f5839fdf3771dfcf516 \
49-
# && ./autogen.sh \
50-
# && ./configure --enable-tests=no --enable-benchmark=no \
51-
# --enable-experimental --enable-module-ecdh --enable-module-recovery --enable-module-schnorrsig --enable-module-extrakeys \
52-
# && make -j$(nproc) && sudo make install && cd ..
53-
# - run: cd secp256k1 && phpize \
54-
# && ./configure --with-secp256k1-config --with-module-recovery --with-module-ecdh --with-module-schnorrsig --with-module-extrakeys \
55-
# && make -j$(nproc) && sudo make install \
56-
# && cd ..
57-
# - run: composer update
58-
# - run: travis/verify_stubs.sh
59-
# - run: cd secp256k1/ && REPORT_EXIT_STATUS=1 make test || (find tests/*.log -type f -exec cat {} + ; exit 1) && cd ..
60-
# - run: travis/run_coverage_test.sh
61-
# - run: travis/run_valgrind_test.sh
62-
# - run: travis/validate_examples.sh
14+
- run: ./gradlew check --info
15+
- run: git clone https://github.com/bitcoin-core/secp256k1.git libsecp256k1
16+
- run: cd libsecp256k1 && git checkout efad3506a8937162e8010f5839fdf3771dfcf516 \
17+
&& ./autogen.sh \
18+
&& ./configure --enable-tests=no --enable-benchmark=no \
19+
--enable-experimental --enable-module-ecdh --enable-module-recovery --enable-module-schnorrsig --enable-module-extrakeys \
20+
&& make -j$(nproc) && sudo make install && cd ..
21+
- run: cd secp256k1 && phpize \
22+
&& ./configure --with-secp256k1-config --with-module-recovery --with-module-ecdh --with-module-schnorrsig --with-module-extrakeys \
23+
&& make -j$(nproc) && sudo make install \
24+
&& cd ..
25+
- run: composer update
26+
- run: travis/verify_stubs.sh
27+
- run: cd secp256k1/ && REPORT_EXIT_STATUS=1 make test || (find tests/*.log -type f -exec cat {} + ; exit 1) && cd ..
28+
- run: travis/run_coverage_test.sh
29+
- run: travis/run_valgrind_test.sh
30+
- run: travis/validate_examples.sh

0 commit comments

Comments
 (0)