forked from Bitc0indad/gnostr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Bitc0indad/update-to-v.0.0.17
Update to v.0.0.17
- Loading branch information
Showing
290 changed files
with
51,208 additions
and
8,293 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: gnostr-bot | ||
|
||
on: | ||
schedule: | ||
- cron: '0 * * * *' # “At minute zero.” | ||
pull_request: | ||
branches: | ||
- '*' | ||
- '*/*' | ||
- '**' | ||
- 'master' | ||
- 'main' | ||
push: | ||
branches: | ||
- '*' | ||
- '*/*' | ||
- '**' | ||
- 'master' | ||
- 'main' | ||
|
||
env: | ||
GIT_DISCOVERY_ACROSS_FILESYSTEM: 1 | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
tag: ["latest"] | ||
runs-on: ${{ matrix.os }} | ||
container: rust:${{ matrix.tag }} | ||
|
||
steps: | ||
- name: checkout@v3 fetch-depth submodules set-safe-dir true | ||
uses: actions/checkout@v3 | ||
if: ${{ !env.ACT }} | ||
with: | ||
fetch-depth: '0' | ||
submodules: 'true' | ||
set-safe-directory: 'true' | ||
- run: git config --global --add safe.directory /__w/gnostr/gnostr || true | ||
- run: printenv | ||
- run: apt-get update && apt-get install binfmt-support cargo clang clang-14 cmake cmake-data gettext gettext-base lib32gcc-s1 lib32stdc++6 libarchive13 libc6-i386 libclang-common-14-dev libclang-cpp14 libclang-rt-14-dev libclang1-14 libcurl3-nss libgc1 libgit2-1.5 libhttp-parser2.9 libjsoncpp25 libllvm14 libmbedcrypto7 libmbedtls14 libmbedx509-1 libnspr4 libnss3 libobjc-12-dev libobjc4 libpfm4 libpipeline1 librhash0 libstd-rust-1.63 libstd-rust-dev libuv1 libz3-4 libz3-dev llvm-14 llvm-14-dev llvm-14-linker-tools llvm-14-runtime llvm-14-tools nss-plugin-pem python-is-python3 python3-pkg-resources python3-pygments python3-yaml rustc sudo -y | ||
- run: cargo install gnostr-sha256 | ||
- run: cargo install gnostr-bins | ||
- run: rm -rf CMakeCache.txt | ||
- run: rm -rf CMakeFiles | ||
- run: cmake . | ||
- run: V=1 make detect gnostr gnostr-install | ||
- run: echo $(date +%s) | ||
- run: DATE=$(date +%s) && gnostr --sec $(gnostr-sha256 $DATE) -t gnostr --tag weeble $(gnostr-weeble) --tag wobble $(gnostr-wobble) --content 'Somebody is developing with gnostr!' | gnostr-post-event wss://nos.lol | ||
- run: DATE=$(date +%s) && gnostr --sec $(gnostr-sha256 $DATE) -t gnostr --tag weeble $(gnostr-weeble) --tag wobble $(gnostr-wobble) --content "WEEBLE:$(gnostr-weeble):BLOCKHEIGHT:$(gnostr-blockheight):WOBBLE:$(gnostr-wobble)" | gnostr-post-event wss://relay.damus.io | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: gnostr-docker | ||
|
||
on: | ||
schedule: | ||
- cron: '0 2 * * *' # run at 2 AM UTC | ||
pull_request: | ||
branches: | ||
- '*' | ||
- '*/*' | ||
- '**' | ||
- 'master' | ||
- 'main' | ||
push: | ||
branches: | ||
- '*' | ||
- '*/*' | ||
- '**' | ||
- 'master' | ||
- 'main' | ||
|
||
env: | ||
GIT_DISCOVERY_ACROSS_FILESYSTEM: 1 | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
tag: ["latest", "slim-bullseye"] | ||
runs-on: ${{ matrix.os }} | ||
container: rust:${{ matrix.tag }} | ||
|
||
steps: | ||
- run: apt-get update && apt-get install autoconf build-essential curl cmake jq libexpat1-dev libcurl4-openssl-dev libssl-dev libtool lsb-release git make nodejs npm pkg-config python3 python-is-python3 sudo tcl zlib1g-dev -y | ||
## notice: this is a pre checkout step | ||
## notice: additional operations can be done prior to checkout | ||
## - run: apk update && apk add bash cmake git python3 && python3 -m ensurepip | ||
- run: printenv | ||
- name: checkout@v3 fetch-depth submodules set-safe-dir true | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '100' | ||
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 | ||
- run: touch ~/GITHUB_TOKEN.txt | ||
- run: git config --global --add safe.directory /__w/gnostr/gnostr || true | ||
- run: make detect | ||
- run: ./build.cmake.sh | ||
- run: cmake . | ||
- run: make | ||
- run: V=1 make gnostr bins gnostr-sha256 && gnostr --sec $(gnostr-sha256) --content 'gnostr' | gnostr-post-event wss://nos.lol | ||
- run: make nvm | ||
- run: make bins | ||
- run: make tui | ||
- run: make gnostr-act | ||
- run: make gnostr-cat | ||
- run: make gnostr-cli | ||
- run: make gnostr-command | ||
- run: make gnostr-git | ||
- run: make gnostr-grep | ||
- run: make gnostr-legit | ||
- run: make gnostr-proxy | ||
- run: make gnostr-sha256 | ||
- run: make libsecp256k1.a | ||
- run: make gnostr-all | ||
- run: make gnostr-install | ||
- run: make all | ||
- run: make install | ||
- run: ls /usr/local/bin | ||
- run: gnostr --sec $(gnostr-sha256) --content "$(gnostr-git show HEAD)" | gnostr-post-event wss://relay.damus.io |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ jobs: | |
with: | ||
submodules: 'true' | ||
set-safe-directory: 'true' | ||
fetch-depth: '10' | ||
|
||
- uses: actions-rs/[email protected] | ||
#if: ${{ !env.ACT }} | ||
|
@@ -70,17 +71,28 @@ jobs: | |
run: | | ||
echo $GNOSTR | ||
- name: apt-get update || brew install virtualenv | ||
- name: apt-get update && apt-get install jq || brew install jq || true | ||
run: | | ||
sudo apt-get update || brew install virtualenv | ||
sudo apt-get update && apt-get install jq || brew install jq || true | ||
touch ~/GITHUB_TOKEN.txt | ||
- run: python3 -m pip install virtualenv | ||
|
||
- run: V=1 make detect && cmake . | ||
- run: V=1 make gnostr | ||
- run: V=1 make gnostr-install | ||
- run: V=1 make gnostr-all | ||
- run: V=1 make gnostr bins gnostr-sha256 && gnostr --sec $(gnostr-sha256 $(gnostr-weeble)) --content '#gnostr!' -t gnostr --tag weeble $(gnostr-weeble) --tag wobble $(gnostr-wobble) --tag blockheight $(gnostr-blockheight) | gnostr-post-event wss://nos.lol | ||
- run: gnostr --sec $(gnostr-sha256 $(gnostr-weeble)) --content $(gnostr-weeble)/$(gnostr-blockheight)/$(gnostr-wobble) -t gnostr --tag weeble $(gnostr-weeble) --tag blockheight $(gnostr-blockheight) --tag wobble $(gnostr-wobble) | gnostr-post-event wss://relay.damus.io | ||
|
||
- name: V=1 make gnostr-all | ||
run: V=1 make gnostr-all | ||
|
||
- name: V=1 make gnostr-install | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
run: V=1 make gnostr-install | ||
|
||
- name: ./build.cmake.sh | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
run: ./build.cmake.sh | ||
|
||
- name: Save deps | ||
id: cache-deps-save | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
steps: | ||
- name: echo test | ||
#if: ${{ !env.ACT }} | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
run: | | ||
echo GNOSTR=${{ env.GNOSTR }} | ||
echo GNOSTR1=${{ env.GNOSTR1 }} | ||
|
@@ -58,6 +59,7 @@ jobs: | |
CMakeFiles/*.dir | ||
$INPUT_PATH | ||
~/.rustup | ||
~/.cargo | ||
CARGO_TARGET_DIR | ||
key: ${{ runner.os }}-deps | ||
|
||
|
@@ -69,7 +71,7 @@ jobs: | |
- uses: actions-rs/[email protected] | ||
#if: ${{ !env.ACT }} | ||
with: | ||
toolchain: nightly | ||
toolchain: stable | ||
default: true | ||
override: true | ||
|
||
|
@@ -80,18 +82,22 @@ jobs: | |
touch ~/GITHUB_TOKEN.txt | ||
- name: apt-get update || brew install virtualenv | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
run: | | ||
sudo apt-get update && sudo apt-get install virtualenv || brew install virtualenv | ||
touch ~/GITHUB_TOKEN.txt | ||
- run: V=1 make detect | ||
- run: python3 -m pip install virtualenv | ||
|
||
- run: V=1 cmake . | ||
- run: V=1 make gnostr | ||
- run: V=1 make gnostr-all | ||
- name: apt-get update || brew install virtualenv | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
run: | | ||
V=1 make detect | ||
python3 -m pip install virtualenv | ||
V=1 cmake . | ||
V=1 make gnostr | ||
V=1 make gnostr-all | ||
- name: "Build release" | ||
- name: "Build pre-release" | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
run: | | ||
mv gnostr gnostr-$RUNNER_OS-$RUNNER_ARCH | ||
shasum -a 256 gnostr-$RUNNER_OS-$RUNNER_ARCH > gnostr-$RUNNER_OS-$RUNNER_ARCH.sha256.txt | ||
|
@@ -102,7 +108,7 @@ jobs: | |
- name: Set output | ||
run: echo "{name}={value}" >> $GITHUB_OUTPUT | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
if: ${{ !env.ACT }} | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: ${{ matrix.os }} | ||
|
@@ -115,12 +121,13 @@ jobs: | |
- name: Save deps | ||
id: cache-deps-save | ||
uses: actions/cache/save@v3 | ||
if: ${{ !env.ACT }} | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
with: | ||
path: | | ||
src/nostril | ||
CMakeFiles/*.dir | ||
$INPUT_PATH | ||
~/.rustup | ||
~/.cargo | ||
CARGO_TARGET_DIR | ||
key: ${{ steps.cache-deps-restore.outputs.cache-primary-key }} |
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
Oops, something went wrong.