Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: rename and bump up dependencies #176

Merged
merged 17 commits into from
Apr 19, 2023
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ closes: #XXXX
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If any of the checklist items are not applicable, leave it `[ ]` and write a little note why. --->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] I followed the [contributing guidelines](https://github.com/line/finschia/blob/main/CONTRIBUTING.md) and [code of conduct](https://github.com/line/finschia/blob/main/CODE_OF_CONDUCT.md).
- [ ] I followed the [contributing guidelines](https://github.com/Finschia/finschia/blob/main/CONTRIBUTING.md) and [code of conduct](https://github.com/Finschia/finschia/blob/main/CODE_OF_CONDUCT.md).
- [ ] I have added a relevant changelog to `CHANGELOG.md`
- [ ] I have added tests to cover my changes.
- [ ] I have updated the documentation accordingly.
2 changes: 1 addition & 1 deletion .github/workflows/autopr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- release/*
jobs:
create-pull-request:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clean-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
remove-old-artifacts:
runs-on: self-hosted
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:

env:
registry: docker.io
repository: line/lbm
repository: finschia/finschianode
jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
golangci:
name: golangci-lint
runs-on: self-hosted
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
create_tarball:
name: "Create Tarball"
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: "Set tag as version"
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV # set env.VERSION=v0.0.0
Expand All @@ -32,7 +32,7 @@ jobs:
build_for_linux:
name: "Release Build for Linux"
needs: create_tarball
runs-on: self-hosted
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ amd64, arm64 ]
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
name: "Create Release"
needs: [ build_for_linux ]
# needs: [ build_for_linux, build_for_darwin ]
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: "Set tag as version"
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV # set env.VERSION=v0.0.0
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ on:

jobs:
cleanup-runs:
runs-on: self-hosted
runs-on: ubuntu-latest
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.TOKEN }}"

build:
runs-on: self-hosted
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-sims')"
steps:
- uses: actions/checkout@v3
Expand All @@ -30,7 +30,7 @@ jobs:
- run: make build

install-runsim:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/setup-go@v3.3.1
Expand All @@ -46,7 +46,7 @@ jobs:
key: ${{ runner.os }}-go-runsim-binary

test-sim-nondeterminism:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v3
Expand All @@ -72,7 +72,7 @@ jobs:
if: env.GIT_DIFF

test-sim-import-export:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
if: env.GIT_DIFF

test-sim-after-import:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
if: env.GIT_DIFF

test-sim-multi-seed-short:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
release:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:

jobs:
cleanup-runs:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"

install-tparse:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3.3.1
with:
Expand All @@ -33,7 +33,7 @@ jobs:
key: ${{ runner.os }}-go-tparse-binary

build:
runs-on: self-hosted
runs-on: ubuntu-latest
strategy:
matrix:
go-arch: ["amd64"]
Expand All @@ -54,7 +54,7 @@ jobs:
if: env.GIT_DIFF

split-test-files:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3.3.1
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
path: ./pkgs.txt.part.03

tests:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: split-test-files
strategy:
fail-fast: false
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
path: ./${{ matrix.part }}profile.out

upload-coverage-report:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
excludelist+=" $(find ./ -type f -name '*.pb.gw.go')"
excludelist+=" $(find ./ -type f -path './tests/mocks/*.go')"
for filename in ${excludelist}; do
filename=$(echo $filename | sed 's/^./github.com\/line\/lbm/g')
filename=$(echo $filename | sed 's/^./github.com\/Finschia\/finschia/g')
echo "Excluding ${filename} from coverage report..."
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
done
Expand All @@ -174,7 +174,7 @@ jobs:
if: env.GIT_DIFF

test-integration:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: split-test-files
strategy:
fail-fast: false
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
path: ./${{ matrix.part }}-integration-output.txt

test-integration-report:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [test-integration, install-tparse]
timeout-minutes: 5
steps:
Expand Down Expand Up @@ -254,7 +254,7 @@ jobs:
if: env.GIT_DIFF

test-integration-multi-node:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: split-test-files
strategy:
fail-fast: false
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
path: ./${{ matrix.part }}-integration-multi-node-output.txt

test_integration_multi_node_report:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [test-integration-multi-node, install-tparse]
timeout-minutes: 5
steps:
Expand Down Expand Up @@ -333,7 +333,7 @@ jobs:
if: env.GIT_DIFF

test-localnet-blocks:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [build, tests]
steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ builds:
- -mod=readonly
- -tags=netgo ledger
ldflags:
- -X github.com/line/lbm-sdk/version.Name=finschia
- -X github.com/line/lbm-sdk/version.ServerName=finschia
- -X github.com/line/lbm-sdk/version.Version={{ .Version }}
- -X github.com/line/lbm-sdk/version.Commit={{ .FullCommit }}
- -X "github.com/line/lbm-sdk/version.BuildTags=netgo,ledger"
- -X github.com/Finschia/finschia-sdk/version.Name=finschia
- -X github.com/Finschia/finschia-sdk/version.ServerName=finschia
- -X github.com/Finschia/finschia-sdk/version.Version={{ .Version }}
- -X github.com/Finschia/finschia-sdk/version.Commit={{ .FullCommit }}
- -X "github.com/Finschia/finschia-sdk/version.BuildTags=netgo,ledger"
archives:
-
builds: ['fnsad']
Expand Down
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
repositoryUrl: git@github.com:line/finschia.git
repositoryUrl: git@github.com:Finschia/finschia.git
verifyConditions: ['@semantic-release/github']
prepare: []
publish: ['@semantic-release/github']
Expand Down
Loading