Merge pull request #1 from Bitc0indad/update-to-v.0.0.17 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gnostr-alpine | |
on: | |
pull_request: | |
branches: | |
- '*' | |
- '*/*' | |
- '**' | |
- 'master' | |
- 'main' | |
push: | |
branches: | |
- '*' | |
- '*/*' | |
- '**' | |
- 'master' | |
- 'main' | |
env: | |
GIT_DISCOVERY_ACROSS_FILESYSTEM: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
tag: [18.17.1] | |
container: node:${{ matrix.tag }}-alpine | |
steps: | |
## notice: this is a pre checkout step | |
## notice: additional operations can be done prior to checkout | |
- run: apk update && apk add bash cmake curl git make python3 && python3 -m ensurepip | |
- run: printenv | |
- run: touch ~/GITHUB_TOKEN.txt | |
- name: checkout@v3 fetch-depth submodules set-safe-dir true | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '10' | |
submodules: 'true' | |
set-safe-directory: 'true' | |
## notice: these are post checkout steps | |
- run: apk update && apk add autoconf automake build-base openssl-dev libtool make sudo | |
- run: rm CMakeCache.txt || echo && cmake . | |
- run: make | |
- run: make clean | |
- run: make help | |
- run: make libsecp256k1.a || rm -rf deps/secp256k1 && make libsecp256k1.a | |
- run: rm gnostr || true | |
- run: make gnostr && cp gnostr gnostr-alpine | |
- run: make gnostr-install | |
## TODO: add ssh config to act sequence | |
- run: rm -rf .venv |