Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
039d2ce
init: docker config
RandyMcMillan May 15, 2022
370c534
Create c-cpp.yml
RandyMcMillan Jun 4, 2022
43b3253
workflow: install -v ./src/statsd_client.h/cpp /usr/local/include/
RandyMcMillan Jun 4, 2022
f2a0efa
.github/workflows/c-cpp.yml: cache depends
RandyMcMillan Jun 4, 2022
c3956d1
workflow: cache depends bitcoind
RandyMcMillan Jun 4, 2022
73a326a
.github/workflows/c-cpp.yml: install everything for linux
RandyMcMillan Jun 4, 2022
6e5fb3e
.github/workflows/c-cpp.yml: aarch64 cross compile
RandyMcMillan Jun 4, 2022
61dc627
configure: aarch64-linux-gnu --disable tests bench man wallet gui=no
RandyMcMillan Jun 4, 2022
bca2da4
.github/workflows/c-cpp.yml: make install end
RandyMcMillan Jun 4, 2022
961e9e4
make: shell nocache=true working
RandyMcMillan Jun 4, 2022
2cbcdbf
docker: make shell working dirty
RandyMcMillan Jun 4, 2022
360f5fb
workflow: make build-shell
RandyMcMillan Jun 4, 2022
e697b1d
.github/workflows/c-cpp.yml: cache depends/sources
RandyMcMillan Jun 4, 2022
7036be5
make HOST=...
RandyMcMillan Jun 4, 2022
15b83af
.github/workflows/c-cpp.yml: cache sources/.libs
RandyMcMillan Jun 4, 2022
8392e98
.github/workflows/c-cpp.yml: cache src/*.a
RandyMcMillan Jun 4, 2022
558d17b
.github/workflows/c-cpp.yml: HOST=aarch64.. make
RandyMcMillan Jun 4, 2022
6c2a4ad
.github/workflows/c-cpp.yml: make build-shell rm -f Makefile
RandyMcMillan Jun 4, 2022
4ee7cd1
.github/workflows/c-cpp.yml: docker-cache to gh registry
RandyMcMillan Jun 4, 2022
ee7e332
github/workflows/dockerimage.yml
RandyMcMillan Jun 4, 2022
fb3408f
.github/workflows/c-cpp.yml: apt cache
RandyMcMillan Jun 4, 2022
4a4f46a
Dockerfile: test node:14 then node:16
RandyMcMillan Jun 4, 2022
446253a
.github/workflows/c-cpp.yml: UBUNTU_VERSION=jamy
RandyMcMillan Jun 5, 2022
99f2fd1
make: PROJECT_NAME=$PWD
RandyMcMillan Jun 5, 2022
90e149f
.github/workflows/c-cpp.yml: build shell: make && \ ...
RandyMcMillan Jun 5, 2022
3d38877
docker/bin/initialize: add file: make initialize
RandyMcMillan Jun 5, 2022
0500c2a
.github/workflows/dockerimage.yml -> *.yml.disable
RandyMcMillan Jun 5, 2022
1398cc0
make: package-all working
RandyMcMillan Jun 5, 2022
c299345
.github/workflows/c-cpp.yml: add -name: id: to cache-depends-sources
RandyMcMillan Jun 5, 2022
6e4c9c7
workflow: if: steps.apt-cache.outputs.cache-hit != 'true'
RandyMcMillan Jun 5, 2022
37782d9
docker: comply with valid image reference ubuntu:jammy
RandyMcMillan Jun 5, 2022
f4461fb
.github/workflows/c-cpp.yml: make build-shell
RandyMcMillan Jun 5, 2022
117bea3
.github/workflows/c-cpp.yml: make package-all signin
RandyMcMillan Jun 5, 2022
b8c9883
workflow: begin make use github runner env variables
RandyMcMillan Jun 7, 2022
dd6b4fa
docker/ubuntu.dockerfile: remove second install debconf
RandyMcMillan Jun 7, 2022
d4f0ee0
.github/workflows/statoshi.yml: make init initialize for missing libs
RandyMcMillan Jun 7, 2022
e65e926
docker/bin/initialize: install recommends for completeness
RandyMcMillan Jun 7, 2022
ac4c818
.github/workflows/statoshi.yml: call make init initialize again!
RandyMcMillan Jun 7, 2022
6afda31
Update statoshi.yml (#1)
RandyMcMillan Aug 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/dockerimage.yml.disable
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Increase number to trigger CI -> 1
name: The showdown
on:
push: {}
jobs:
build_no_cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker build . -t thing
build_no_cache_buildkit:
env:
DOCKER_BUILDKIT: '1'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker build . -t thing
build_with_docker_save_load:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: cache-docker
uses: actions/cache@v1
with:
path: /tmp/docker-save
key: docker-save-${{ hashFiles('Dockerfile') }}
- run: docker load -i /tmp/docker-save/snapshot.tar || true
if: steps.cache-docker.outputs.cache-hit == 'true'
- run: docker build . -t thing --cache-from=thing-cache
- run: docker tag thing thing-cache && mkdir -p /tmp/docker-save && docker save thing-cache -o /tmp/docker-save/snapshot.tar && ls -lh /tmp/docker-save || true
if: always() && steps.cache-docker.outputs.cache-hit != 'true'
build_with_local_registry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: cache-docker
uses: actions/cache@v1
with:
path: /tmp/docker-registry
key: docker-registry-no-buildkit-${{ hashFiles('Dockerfile') }}
- run: docker run -d -p 5000:5000 --restart=always --name registry -v /tmp/docker-registry:/var/lib/registry registry:2 && npx wait-on tcp:5000
- run: docker pull localhost:5000/thing || true
- run: docker build . -t thing --cache-from=localhost:5000/thing
- run: docker tag thing localhost:5000/thing && docker push localhost:5000/thing || true
if: steps.cache.outputs.cache-hit != 'true'
build_with_local_registry_buildkit:
env:
DOCKER_BUILDKIT: '1'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: cache-docker
uses: actions/cache@v1
with:
path: /tmp/docker-registry
key: docker-registry-buildkit-${{ hashFiles('Dockerfile') }}
- run: docker run -d -p 5000:5000 --restart=always --name registry -v /tmp/docker-registry:/var/lib/registry registry:2 && npx wait-on tcp:5000
- run: docker build . -t thing --cache-from=localhost:5000/thing --build-arg BUILDKIT_INLINE_CACHE=1
- run: docker tag thing localhost:5000/thing && docker push localhost:5000/thing || true
if: steps.cache.outputs.cache-hit != 'true'
build_with_gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u $GITHUB_ACTOR --password-stdin
- run: docker pull docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache-no-buildkit || true
- run: docker build . -t thing --cache-from=docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache-no-buildkit
- run: docker tag thing docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache-no-buildkit && docker push docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache-no-buildkit || true
203 changes: 203 additions & 0 deletions .github/workflows/statoshi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
name: statoshi

on:
pull_request:
branches: #[ master ]
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '*/*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- 'master' # includes master
- 'main' # includes main
# Triggers the workflow on push or pull request events but only for the master branch
push:
#paths:
# - '.github/workflows/automate.yml'
#schedule:
# - cron: "*/5 * * * *"
branches: #[ master ]
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- 'master' # includes master
- 'main' # includes main

workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/depends
key: ${{ runner.os }}-depends
restore-keys: |
${{ runner.os }}-depends

- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/src/bitcoind
key: ${{ runner.os }}-bitcoind
restore-keys: |
${{ runner.os }}-bitcoind-

- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/src/bitcoin-cli
key: ${{ runner.os }}-bitcoin-cli
restore-keys: |
${{ runner.os }}-bitcoind-cli

- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/src/.libs
key: ${{ runner.os }}-libs
restore-keys: |
${{ runner.os }}-libs

- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/src/*.a
key: ${{ runner.os }}-src-a
restore-keys: |
${{ runner.os }}-src-a

- uses: actions/cache@v3
id: apt-cache
with:
path: |
${{ github.workspace }}/var/cache/apt/archives
key: ${{ runner.os }}-apt-cache
restore-keys: |
${{ runner.os }}-apt-cache

- name: printenv make
run: |
printenv
make
make help
make report

- name: install libs-1
if: steps.apt-cache.outputs.cache-hit != 'true'
run: |
sudo make init initialize
echo "check to see what init initialize is missing!!!"
sudo \
apt-get install --no-install-recommends -y \
automake \
binutils \
bsdmainutils \
ca-certificates \
cmake \
curl \
diffoscope \
doxygen \
g++-multilib \
git \
libbz2-dev \
libcap-dev \
libtinfo5 \
libtool \
lbzip2 \
libz-dev \
make \
nsis \
patch \
pkg-config \
python3 \
python3-setuptools \
ripgrep \
vim \
xz-utils \
build-essential libtool autotools-dev \
automake pkg-config bsdmainutils python3 \
libevent-dev libboost-dev \
libsqlite3-dev libminiupnpc-dev libnatpmp-dev \
libzmq3-dev systemtap-sdt-dev \
libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools \
qtwayland5 libqrencode-dev

# Split cross-compilers out.
# apt cant install everything at once
- name: install libs-2
if: steps.apt-cache.outputs.cache-hit != 'true'
run: |
sudo make init initialize
echo "check to see what init initialize is missing!!!"
sudo \
apt-get install --no-install-recommends -y \
g++-aarch64-linux-gnu \
binutils-aarch64-linux-gnu \
g++-arm-linux-gnueabihf \
binutils-arm-linux-gnueabihf curl \
binutils-riscv64-linux-gnu \
g++-riscv64-linux-gnu \
binutils-gold \
bsdmainutils pkg-config python3 patch bison \
g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf \
g++-aarch64-linux-gnu #\
# binutils-aarch64-linux-gnu
sudo make init initialize
- name: install statsd
run: |
sudo -s install -v ./src/statsd_client.h /usr/local/include/
sudo -s install -v ./src/statsd_client.cpp /usr/local/include/
- name: make download -C depends
run: |
cd depends
make HOST=arm-linux-gnueabihf NO_QT=1
make HOST=aarch64-linux-gnu NO_QT=1
cd ..
# make download -C depends
# make install -C depends
- name: autogen.sh
run: |
./autogen.sh
- name: configure
run: |
# ./configure
# CONFIG_SITE=$PWD/depends/arm-linux-gnueabihf/share/config.site \
# ./configure --enable-reduce-exports LDFLAGS=-static-libstdc++
CONFIG_SITE=$PWD/depends/aarch64-linux-gnu/share/config.site \
./configure \
--disable-wallet \
--disable-tests \
--disable-bench \
--disable-man \
--with-gui=no \
--enable-reduce-exports LDFLAGS=-static-libstdc++
- name: HOST=aarch64-linux-gnu NO_QT=1 make
run: |
# make check
# make check HOST=arm-linux-gnueabihf NO_QT=1
HOST=aarch64-linux-gnu NO_QT=1 make

- name: make install
run: |
sudo make install
- name: make build-shell
run: |
rm -f Makefile
make build-shell user=root
make && \
echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u $GITHUB_ACTOR --password-stdin
# echo ${{ secrets.GITHUB_TOKEN }} > ~/GH_TOKEN.txt
# make package-all user=root && make package-all user=git
# UBUNTU_VERSION=jammy docker pull docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache-no-buildkit || true
# UBUNTU_VERSION=jammy docker pull docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache-no-buildkit || true
sudo docker build --build-arg=changeme -f docker/ubuntu.dockerfile . -t thing --cache-from=docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache-no-buildkit
# docker tag ubuntu-cache docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache-no-buildkit && docker push docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache-no-buildkit || true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bitcoin-*
*.tar.gz

*.exe
Expand Down
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:14
RUN yarn create react-app my-react-app
RUN cd my-react-app && yarn build
RUN npm install -g @vue/cli && (yes | vue create my-vue-app --default)
RUN cd my-vue-app && yarn build
RUN mkdir -p my-tests && cd my-tests && yarn add playwright
FROM node:16
RUN yarn create react-app my-react-app16
RUN cd my-react-app16 && yarn build
RUN npm install -g @vue/cli && (yes | vue create my-vue-app --default)
RUN cd my-vue-app && yarn build
RUN mkdir -p my-tests && cd my-tests && yarn add playwright
# test
# test
# test
# test
# test
# test
# test
# test
# test
# test

Loading