From d6ead67b07bd5ebbfaf42c182d2010798e575b00 Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 19:44:55 +0700 Subject: [PATCH 01/22] fix --- .github/workflows/release.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e541067 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,48 @@ +name: Release haproxy healthcheck binaries + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +# on: +# push: +# tags: +# - v* + +jobs: + build: + runs-on: [ubuntu-20.04] + + steps: + - name: checkout repo + uses: actions/checkout@v3 + + - name: setup go env + uses: actions/setup-go@v3 + with: + go-version: '1.19.7' + check-latest: true + + - name: build binaries + run: | + # snappy + apt-get install libsnappy-dev + # protoc + go install google.golang.org/protobuf/cmd/protoc-gen-go@latest + export PATH="$PATH:$(go env GOPATH)/bin" + wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip + unzip protoc-22.3-linux-x86_64.zip + mv bin/protoc /usr/bin/protoc + chmod +x /usr/bin/protoc + # deps + make gen-proto + # build + make full + + # - name: Create release + # uses: softprops/action-gh-release@v1 + # with: + # files: | + # radiance From 8dfd03ceafb9f06e482c1b45e2feed0aa6b9199f Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 20:05:36 +0700 Subject: [PATCH 02/22] tst --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e541067..9faa7f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release haproxy healthcheck binaries +name: Release radiance tool on: push: @@ -28,16 +28,20 @@ jobs: - name: build binaries run: | # snappy - apt-get install libsnappy-dev + sudo apt update + sudo apt-get install -y libsnappy-dev build-essential cmake zlib1g-dev libbz2-dev liblz4-dev libzstd-dev + # protoc go install google.golang.org/protobuf/cmd/protoc-gen-go@latest export PATH="$PATH:$(go env GOPATH)/bin" wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip unzip protoc-22.3-linux-x86_64.zip - mv bin/protoc /usr/bin/protoc - chmod +x /usr/bin/protoc + sudo mv bin/protoc /usr/bin/protoc + sudo chmod +x /usr/bin/protoc + # deps make gen-proto + # build make full From 67eeaf57b3b40906d37f5e41261168ebb21c7101 Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 20:06:52 +0700 Subject: [PATCH 03/22] tst --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9faa7f0..61448f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Release radiance tool on: push: - branches: [ main ] + branches: [ tx_meta ] pull_request: branches: [ main ] From e74ab6edd8b2762b9069304ef8b65461ab5ada02 Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 20:50:37 +0700 Subject: [PATCH 04/22] tst --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 08ac069..d3ba220 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ build_rocksdb: -DWITH_TESTS=OFF \ -DWITH_TOOLS=OFF \ -DWITH_TRACE_TOOLS=OFF ; \ - make -j + make -j `nproc` lite: install_compatible_golang_version go1.19.7 build -tags=lite ./cmd/radiance full: install_compatible_golang_version build_rocksdb From b4be3b37fa794975070fdab492f4631f16cce2a3 Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 21:06:21 +0700 Subject: [PATCH 05/22] tst --- .github/workflows/release.yml | 36 +++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 61448f0..a2b3631 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,23 +27,27 @@ jobs: - name: build binaries run: | + whereis go + # snappy - sudo apt update - sudo apt-get install -y libsnappy-dev build-essential cmake zlib1g-dev libbz2-dev liblz4-dev libzstd-dev - - # protoc - go install google.golang.org/protobuf/cmd/protoc-gen-go@latest - export PATH="$PATH:$(go env GOPATH)/bin" - wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip - unzip protoc-22.3-linux-x86_64.zip - sudo mv bin/protoc /usr/bin/protoc - sudo chmod +x /usr/bin/protoc - - # deps - make gen-proto - - # build - make full + # sudo apt update + # sudo apt-get install -y libsnappy-dev build-essential cmake zlib1g-dev libbz2-dev liblz4-dev libzstd-dev + # + # # protoc + # go install google.golang.org/protobuf/cmd/protoc-gen-go@latest + # export PATH="$PATH:$(go env GOPATH)/bin" + # wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip + # unzip protoc-22.3-linux-x86_64.zip + # sudo mv bin/protoc /usr/bin/protoc + # sudo chmod +x /usr/bin/protoc + # + # sudo cp + # + # # deps + # make gen-proto + # + # # build + # make full # - name: Create release # uses: softprops/action-gh-release@v1 From a07bdc6474cfb75777a7792f98b69861cb7ae32f Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 21:07:53 +0700 Subject: [PATCH 06/22] tst --- .github/workflows/release.yml | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2b3631..96f592b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,27 +27,27 @@ jobs: - name: build binaries run: | - whereis go - + cp /usr/bin/go /usr/bin/go1.19.7 + # snappy - # sudo apt update - # sudo apt-get install -y libsnappy-dev build-essential cmake zlib1g-dev libbz2-dev liblz4-dev libzstd-dev - # - # # protoc - # go install google.golang.org/protobuf/cmd/protoc-gen-go@latest - # export PATH="$PATH:$(go env GOPATH)/bin" - # wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip - # unzip protoc-22.3-linux-x86_64.zip - # sudo mv bin/protoc /usr/bin/protoc - # sudo chmod +x /usr/bin/protoc - # - # sudo cp - # - # # deps - # make gen-proto - # - # # build - # make full + sudo apt update + sudo apt-get install -y libsnappy-dev build-essential cmake zlib1g-dev libbz2-dev liblz4-dev libzstd-dev + + # protoc + go install google.golang.org/protobuf/cmd/protoc-gen-go@latest + export PATH="$PATH:$(go env GOPATH)/bin" + wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip + unzip protoc-22.3-linux-x86_64.zip + sudo mv bin/protoc /usr/bin/protoc + sudo chmod +x /usr/bin/protoc + + sudo cp + + # deps + make gen-proto + + # build + make full # - name: Create release # uses: softprops/action-gh-release@v1 From 9ec9600454ab6ef0f214897dd9f0895326a2e09d Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 21:08:53 +0700 Subject: [PATCH 07/22] tst --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96f592b..1c24c48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,8 +27,8 @@ jobs: - name: build binaries run: | - cp /usr/bin/go /usr/bin/go1.19.7 - + sudo cp /usr/bin/go /usr/bin/go1.19.7 + # snappy sudo apt update sudo apt-get install -y libsnappy-dev build-essential cmake zlib1g-dev libbz2-dev liblz4-dev libzstd-dev From b5a751c626cbecf72b782c76c4b7e195b066ef0d Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 21:10:22 +0700 Subject: [PATCH 08/22] tst --- .github/workflows/release.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c24c48..d1be505 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,8 +41,6 @@ jobs: sudo mv bin/protoc /usr/bin/protoc sudo chmod +x /usr/bin/protoc - sudo cp - # deps make gen-proto From 88f8e8371f2031b2b6da4f286677e50bdf808e3e Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 21:20:00 +0700 Subject: [PATCH 09/22] tst --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1be505..825184b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,7 @@ jobs: - name: build binaries run: | sudo cp /usr/bin/go /usr/bin/go1.19.7 + go1.19.7 download # snappy sudo apt update From 59c6f8593a25ac1332d437003956079efc631539 Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 21:23:57 +0700 Subject: [PATCH 10/22] tst --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 825184b..1f288b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,6 @@ jobs: - name: build binaries run: | sudo cp /usr/bin/go /usr/bin/go1.19.7 - go1.19.7 download # snappy sudo apt update @@ -45,6 +44,8 @@ jobs: # deps make gen-proto + go download + # build make full From b90608271eff1744cdf2769ee4d1dd6e4956261e Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 22:17:46 +0700 Subject: [PATCH 11/22] tst --- .github/workflows/release.yml | 2 -- Makefile | 41 ++++++++++++++++++----------------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f288b7..d1be505 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,8 +44,6 @@ jobs: # deps make gen-proto - go download - # build make full diff --git a/Makefile b/Makefile index d3ba220..37110d6 100644 --- a/Makefile +++ b/Makefile @@ -5,26 +5,27 @@ ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) install_compatible_golang_version: go install golang.org/dl/go1.19.7@latest build_rocksdb: - mkdir -p facebook ; cd facebook ; \ - git clone https://github.com/facebook/rocksdb --branch v7.10.2 --depth 1 ; \ - cd ./rocksdb ; \ - mkdir -p build && cd build ; \ - cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ - -DROCKSDB_BUILD_SHARED=OFF \ - -DWITH_GFLAGS=OFF \ - -DWITH_BZ2=ON \ - -DWITH_SNAPPY=OFF \ - -DWITH_ZLIB=ON \ - -DWITH_ZSTD=ON \ - -DWITH_ALL_TESTS=OFF \ - -DWITH_BENCHMARK_TOOLS=OFF \ - -DWITH_CORE_TOOLS=OFF \ - -DWITH_RUNTIME_DEBUG=OFF \ - -DWITH_TESTS=OFF \ - -DWITH_TOOLS=OFF \ - -DWITH_TRACE_TOOLS=OFF ; \ - make -j `nproc` + sudo apt install -y librocksdb-dev + # mkdir -p facebook ; cd facebook ; \ + # git clone https://github.com/facebook/rocksdb --branch v7.10.2 --depth 1 ; \ + # cd ./rocksdb ; \ + # mkdir -p build && cd build ; \ + # cmake .. \ + # -DCMAKE_BUILD_TYPE=Release \ + # -DROCKSDB_BUILD_SHARED=OFF \ + # -DWITH_GFLAGS=OFF \ + # -DWITH_BZ2=ON \ + # -DWITH_SNAPPY=OFF \ + # -DWITH_ZLIB=ON \ + # -DWITH_ZSTD=ON \ + # -DWITH_ALL_TESTS=OFF \ + # -DWITH_BENCHMARK_TOOLS=OFF \ + # -DWITH_CORE_TOOLS=OFF \ + # -DWITH_RUNTIME_DEBUG=OFF \ + # -DWITH_TESTS=OFF \ + # -DWITH_TOOLS=OFF \ + # -DWITH_TRACE_TOOLS=OFF ; \ + # make -j `nproc` lite: install_compatible_golang_version go1.19.7 build -tags=lite ./cmd/radiance full: install_compatible_golang_version build_rocksdb From 9d2ca15aabab161f2130a357b28160dcfe3bcc32 Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 22:32:37 +0700 Subject: [PATCH 12/22] tst --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 37110d6..fd3fe38 100644 --- a/Makefile +++ b/Makefile @@ -27,11 +27,11 @@ build_rocksdb: # -DWITH_TRACE_TOOLS=OFF ; \ # make -j `nproc` lite: install_compatible_golang_version - go1.19.7 build -tags=lite ./cmd/radiance + go build -tags=lite ./cmd/radiance full: install_compatible_golang_version build_rocksdb CGO_CFLAGS="-I$$(pwd)/facebook/rocksdb/include" \ CGO_LDFLAGS="-L$$(pwd)/facebook/rocksdb/build -lbz2" \ - go1.19.7 build ./cmd/radiance + go build ./cmd/radiance radiance: install_compatible_golang_version build_rocksdb CGO_CFLAGS="-I$$(pwd)/facebook/rocksdb/include" \ CGO_LDFLAGS="-L$$(pwd)/facebook/rocksdb/build -lbz2" \ From 05f29e786c4b8db09586ae4ffcb958fda5a18c07 Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 22:34:11 +0700 Subject: [PATCH 13/22] tst --- Makefile | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index fd3fe38..4e6b100 100644 --- a/Makefile +++ b/Makefile @@ -5,27 +5,27 @@ ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) install_compatible_golang_version: go install golang.org/dl/go1.19.7@latest build_rocksdb: - sudo apt install -y librocksdb-dev - # mkdir -p facebook ; cd facebook ; \ - # git clone https://github.com/facebook/rocksdb --branch v7.10.2 --depth 1 ; \ - # cd ./rocksdb ; \ - # mkdir -p build && cd build ; \ - # cmake .. \ - # -DCMAKE_BUILD_TYPE=Release \ - # -DROCKSDB_BUILD_SHARED=OFF \ - # -DWITH_GFLAGS=OFF \ - # -DWITH_BZ2=ON \ - # -DWITH_SNAPPY=OFF \ - # -DWITH_ZLIB=ON \ - # -DWITH_ZSTD=ON \ - # -DWITH_ALL_TESTS=OFF \ - # -DWITH_BENCHMARK_TOOLS=OFF \ - # -DWITH_CORE_TOOLS=OFF \ - # -DWITH_RUNTIME_DEBUG=OFF \ - # -DWITH_TESTS=OFF \ - # -DWITH_TOOLS=OFF \ - # -DWITH_TRACE_TOOLS=OFF ; \ - # make -j `nproc` + # sudo apt install -y librocksdb-dev + mkdir -p facebook ; cd facebook ; \ + git clone https://github.com/facebook/rocksdb --branch v7.10.2 --depth 1 ; \ + cd ./rocksdb ; \ + mkdir -p build && cd build ; \ + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DROCKSDB_BUILD_SHARED=OFF \ + -DWITH_GFLAGS=OFF \ + -DWITH_BZ2=ON \ + -DWITH_SNAPPY=OFF \ + -DWITH_ZLIB=ON \ + -DWITH_ZSTD=ON \ + -DWITH_ALL_TESTS=OFF \ + -DWITH_BENCHMARK_TOOLS=OFF \ + -DWITH_CORE_TOOLS=OFF \ + -DWITH_RUNTIME_DEBUG=OFF \ + -DWITH_TESTS=OFF \ + -DWITH_TOOLS=OFF \ + -DWITH_TRACE_TOOLS=OFF ; \ + make -j `nproc` lite: install_compatible_golang_version go build -tags=lite ./cmd/radiance full: install_compatible_golang_version build_rocksdb From da77d4f713e47a6d88b623b6767931696db4e76a Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 3 May 2023 22:56:38 +0700 Subject: [PATCH 14/22] tst --- .github/workflows/release.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1be505..9ff92d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,15 +1,15 @@ name: Release radiance tool -on: - push: - branches: [ tx_meta ] - pull_request: - branches: [ main ] - # on: # push: -# tags: -# - v* +# branches: [ tx_meta ] +# pull_request: +# branches: [ main ] + +on: + push: + tags: + - v* jobs: build: @@ -47,8 +47,8 @@ jobs: # build make full - # - name: Create release - # uses: softprops/action-gh-release@v1 - # with: - # files: | - # radiance + - name: Create release + uses: softprops/action-gh-release@v1 + with: + files: | + radiance From 17994663082609f424a0ccd9df71293adff4fd4c Mon Sep 17 00:00:00 2001 From: Pedro Date: Thu, 4 May 2023 11:20:16 +0700 Subject: [PATCH 15/22] tst --- .github/workflows/release.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ff92d4..1b96069 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,15 +1,15 @@ name: Release radiance tool -# on: -# push: -# branches: [ tx_meta ] -# pull_request: -# branches: [ main ] - on: push: - tags: - - v* + branches: [ tx_meta ] + pull_request: + branches: [ main ] + +# on: +# push: +# tags: +# - v* jobs: build: @@ -25,6 +25,13 @@ jobs: go-version: '1.19.7' check-latest: true + - name: Cache rocksdb build + uses: actions/cache@v3 + with: + path: | + ~/radiance-triton/facebook/ + ~/radiance-triton/radiance-triton/facebook/ + - name: build binaries run: | sudo cp /usr/bin/go /usr/bin/go1.19.7 @@ -47,6 +54,9 @@ jobs: # build make full + ls -lha . + + - name: Create release uses: softprops/action-gh-release@v1 with: From 1ed5102f4d2c6550403640870958fc17d6c0e599 Mon Sep 17 00:00:00 2001 From: Pedro Date: Thu, 4 May 2023 11:25:19 +0700 Subject: [PATCH 16/22] tst --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b96069..0e05116 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,6 +31,7 @@ jobs: path: | ~/radiance-triton/facebook/ ~/radiance-triton/radiance-triton/facebook/ + key: ${{ runner.os }}-build - name: build binaries run: | From 3fb7efb48335ba54065adad13856067a542a1f26 Mon Sep 17 00:00:00 2001 From: Pedro Date: Thu, 4 May 2023 11:40:33 +0700 Subject: [PATCH 17/22] tst --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e05116..8868cee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,10 +28,11 @@ jobs: - name: Cache rocksdb build uses: actions/cache@v3 with: + key: ${{ runner.os }}-build path: | ~/radiance-triton/facebook/ ~/radiance-triton/radiance-triton/facebook/ - key: ${{ runner.os }}-build + ~/work/radiance-triton/radiance-triton/facebook/ - name: build binaries run: | @@ -57,9 +58,8 @@ jobs: ls -lha . - - - name: Create release - uses: softprops/action-gh-release@v1 - with: - files: | - radiance + # - name: Create release + # uses: softprops/action-gh-release@v1 + # with: + # files: | + # radiance From 0403cbe1d6093670afeb486c846ba0108ca79f0b Mon Sep 17 00:00:00 2001 From: Pedro Date: Thu, 4 May 2023 11:43:00 +0700 Subject: [PATCH 18/22] tst --- .github/workflows/release.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8868cee..ebe6167 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,13 +3,13 @@ name: Release radiance tool on: push: branches: [ tx_meta ] + tags: + - v* pull_request: branches: [ main ] # on: # push: -# tags: -# - v* jobs: build: @@ -58,8 +58,9 @@ jobs: ls -lha . - # - name: Create release - # uses: softprops/action-gh-release@v1 - # with: - # files: | - # radiance + - name: Create release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + radiance From 4c338772d3540e9fd5cab2e649956028ce4ab7e3 Mon Sep 17 00:00:00 2001 From: Pedro Date: Thu, 4 May 2023 12:02:41 +0700 Subject: [PATCH 19/22] tst --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ebe6167..f76c1da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,6 @@ jobs: - name: build binaries run: | - sudo cp /usr/bin/go /usr/bin/go1.19.7 # snappy sudo apt update @@ -56,7 +55,7 @@ jobs: # build make full - ls -lha . + ls -lha radiance - name: Create release uses: softprops/action-gh-release@v1 From 839f3edccc1d553f1b74105ba86c68731ff78f5e Mon Sep 17 00:00:00 2001 From: Pedro Date: Thu, 4 May 2023 12:07:26 +0700 Subject: [PATCH 20/22] tst --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4e6b100..91c4261 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,6 @@ ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) install_compatible_golang_version: go install golang.org/dl/go1.19.7@latest build_rocksdb: - # sudo apt install -y librocksdb-dev mkdir -p facebook ; cd facebook ; \ git clone https://github.com/facebook/rocksdb --branch v7.10.2 --depth 1 ; \ cd ./rocksdb ; \ @@ -25,6 +24,8 @@ build_rocksdb: -DWITH_TESTS=OFF \ -DWITH_TOOLS=OFF \ -DWITH_TRACE_TOOLS=OFF ; \ + # limit concurrency to number of CPU cores (not threads) + # helps managing memory use during build make -j `nproc` lite: install_compatible_golang_version go build -tags=lite ./cmd/radiance From 6a2fdb041548946970be097aaa00c33096293e7c Mon Sep 17 00:00:00 2001 From: Pedro Date: Thu, 4 May 2023 12:07:49 +0700 Subject: [PATCH 21/22] tst --- .github/workflows/release.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f76c1da..ffb1af8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,8 +30,6 @@ jobs: with: key: ${{ runner.os }}-build path: | - ~/radiance-triton/facebook/ - ~/radiance-triton/radiance-triton/facebook/ ~/work/radiance-triton/radiance-triton/facebook/ - name: build binaries From 467abcad6a96c49fa3527539f67a9d827f69513e Mon Sep 17 00:00:00 2001 From: Pedro Date: Thu, 4 May 2023 13:21:11 +0700 Subject: [PATCH 22/22] fix --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffb1af8..f76c1da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,8 @@ jobs: with: key: ${{ runner.os }}-build path: | + ~/radiance-triton/facebook/ + ~/radiance-triton/radiance-triton/facebook/ ~/work/radiance-triton/radiance-triton/facebook/ - name: build binaries