-
Notifications
You must be signed in to change notification settings - Fork 490
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 #1359 from maticnetwork/v1.5.0-candidate
v1.5.0 candidate
- Loading branch information
Showing
831 changed files
with
63,498 additions
and
30,134 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
os: [ ubuntu-20.04 ] # list of os: https://github.com/actions/virtual-environments | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
git submodule update --init --recursive --force | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master | ||
|
@@ -54,7 +54,7 @@ jobs: | |
os: [ ubuntu-20.04 ] # list of os: https://github.com/actions/virtual-environments | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
git submodule update --init --recursive --force | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master | ||
|
@@ -82,7 +82,7 @@ jobs: | |
os: [ ubuntu-20.04 ] # list of os: https://github.com/actions/virtual-environments | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
git submodule update --init --recursive --force | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master | ||
|
@@ -133,7 +133,7 @@ jobs: | |
os: [ ubuntu-20.04 ] # list of os: https://github.com/actions/virtual-environments | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
git submodule update --init --recursive --force | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master | ||
|
@@ -146,7 +146,7 @@ jobs: | |
if: runner.os == 'Linux' | ||
run: sudo apt update && sudo apt install build-essential | ||
|
||
- uses: actions/cache@v3 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
|
@@ -172,7 +172,7 @@ jobs: | |
needs: [unit-tests, integration-tests] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Download artifacts | ||
uses: actions/[email protected] | ||
- name: Upload coverage to Codecov | ||
|
@@ -185,7 +185,7 @@ jobs: | |
os: [ ubuntu-20.04 ] # list of os: https://github.com/actions/virtual-environments | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: bor | ||
- name: Checkout submodules | ||
|
@@ -199,7 +199,7 @@ jobs: | |
go-version: 1.22.x | ||
|
||
- name: Checkout matic-cli | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: maticnetwork/matic-cli | ||
ref: master | ||
|
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,126 @@ | ||
name: packager_deb | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
paths: | ||
- '**' | ||
tags: | ||
- 'v*.*.*' | ||
- 'v*.*.*-*' | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
id-token: write | ||
contents: write | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@master | ||
with: | ||
go-version: 1.22.1 | ||
# Variables | ||
- name: Adding TAG to ENV | ||
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV | ||
- name: adding version | ||
run: | | ||
NUMERIC_VERSION=$( echo ${{ env.GIT_TAG }} | sed 's/[^0-9.]//g' ) | ||
echo "VERSION=$NUMERIC_VERSION" >> $GITHUB_ENV | ||
- name: Cleaning repo | ||
run: make clean | ||
- name: Building for amd64 | ||
run: make bor | ||
|
||
- name: Making directory structure | ||
run: mkdir -p packaging/deb/bor/usr/bin | ||
- name: Copying necessary files | ||
run: cp -rp build/bin/bor packaging/deb/bor/usr/bin/ | ||
- name: Delete control file | ||
run: rm -rf packaging/deb/bor/DEBIAN/control | ||
|
||
# Control file creation | ||
- name: create control file | ||
run: | | ||
touch packaging/deb/bor/DEBIAN/control | ||
echo "Package: bor" >> packaging/deb/bor/DEBIAN/control | ||
echo "Version: ${{ env.VERSION }}" >> packaging/deb/bor/DEBIAN/control | ||
echo "Section: base" >> packaging/deb/bor/DEBIAN/control | ||
echo "Priority: optional" >> packaging/deb/bor/DEBIAN/control | ||
echo "Architecture: amd64" >> packaging/deb/bor/DEBIAN/control | ||
echo "Maintainer: [email protected]" >> packaging/deb/bor/DEBIAN/control | ||
echo "Description: bor binary package" >> packaging/deb/bor/DEBIAN/control | ||
- name: Creating package for binary for bor ${{ env.ARCH }} | ||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: amd64 | ||
|
||
- name: Running package build | ||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: amd64 | ||
|
||
- name: Cleaning build directory for arm64 build | ||
run: make clean | ||
|
||
- name: Updating the apt-get | ||
run: sudo apt-get update -y | ||
|
||
- name: Adding requirements for cross compile | ||
run: sudo apt-get install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu | ||
|
||
- name: delete amd64 control file | ||
run: rm -rf packaging/deb/bor/DEBIAN/control | ||
|
||
- name: Building bor for arm64 | ||
run: GOARCH=arm64 GOOS=linux CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ CGO_ENABLED=1 go build -o build/bin/bor ./cmd/cli/main.go | ||
|
||
# Control file for arm64 creation | ||
- name: create control file | ||
run: | | ||
touch packaging/deb/bor/DEBIAN/control | ||
echo "Package: bor" >> packaging/deb/bor/DEBIAN/control | ||
echo "Version: ${{ env.VERSION }}" >> packaging/deb/bor/DEBIAN/control | ||
echo "Section: base" >> packaging/deb/bor/DEBIAN/control | ||
echo "Priority: optional" >> packaging/deb/bor/DEBIAN/control | ||
echo "Architecture: arm64" >> packaging/deb/bor/DEBIAN/control | ||
echo "Maintainer: [email protected]" >> packaging/deb/bor/DEBIAN/control | ||
echo "Description: bor binary package" >> packaging/deb/bor/DEBIAN/control | ||
- name: Creating package for binary for bor ${{ env.ARCH }} | ||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: arm64 | ||
|
||
- name: Running package build | ||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }} | ||
env: | ||
ARCH: arm64 | ||
|
||
# Shasum | ||
- name: shasum the bor debian package | ||
run: cd packaging/deb/ && sha256sum bor-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb > bor-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb.checksum | ||
env: | ||
ARCH: amd64 | ||
|
||
- name: shasum the bor debian package | ||
run: cd packaging/deb/ && sha256sum bor-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb > bor-${{ env.GIT_TAG }}-${{ env.ARCH }}.deb.checksum | ||
env: | ||
ARCH: arm64 | ||
|
||
- name: Release bor Packages | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ env.GIT_TAG }} | ||
prerelease: true | ||
files: | | ||
packaging/deb/bor**.deb | ||
packaging/deb/bor**.deb.checksum |
Oops, something went wrong.