Skip to content

Commit

Permalink
Upgrade/nv15 (#179)
Browse files Browse the repository at this point in the history
* support v7 types

* update gateway

* update message version and gomod

* fix action

* fix msg detail marshal

* bump venus-gateway to v1.2.0-rc1

* Feat/dtynn/use venus shared (#181)

* refactor: remove the usage of github.com/filecoin-project/venus/app/submodule/apitypes

* feat: upgrade venus to obtain the needed types

* refactor: move NonceMap into utils

* refactor: re-export types from venus-shared

* refactor: collect types for databases

* refactor: remove types package

* build v1.4.0-rc2 (#182)

* upgrade venus & gateway

* update version to v1.4.0-rc2

* update deps & build v1.4.0 (#184)

* remove replace for go-ipfs-cmds

* update deps & messager version

* update git workflows (#185)

Co-authored-by: simlecode <hj1557986@gmail.com>
Co-authored-by: Caesar Wang <dtynn@163.com>
Co-authored-by: tom <69969590+simlecode@users.noreply.github.com>
  • Loading branch information
4 people authored Feb 25, 2022
1 parent 768929f commit aaadc3a
Show file tree
Hide file tree
Showing 67 changed files with 1,451 additions and 1,773 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/build_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ on:
push:
branches:
- main
- test*
- incubation
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -28,25 +27,22 @@ jobs:
export bin=bin
export commit=$(git rev-parse HEAD)
export short=$(git rev-parse --short HEAD)
export github_tag=${GITHUB_REF##*/}
export github_tag=${{github.ref_name}}
export tag=$github_tag
export branch=$github_tag
export git_message=$(git rev-list --format=%s --max-count=1 HEAD | tail +2)
export repo_name=${GITHUB_REPOSITORY##*/}
export branch=$(git symbolic-ref --short -q HEAD)
export tag=$(git describe --tags $(git rev-list --tags --max-count=1))
export artifact_name=${repo_name}_$(git rev-parse --short HEAD).tar.gz
export pub_method=pushTest
export job_url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
export oss_exists=0
export ftp_exists=0
if [[ "${{github.event_name}}" == "create" ]] && ([[ "$github_tag" =~ "v1." ]] || [[ "$github_tag" =~ "v2." ]]); then
export rx='^v([0-9]+\.){0,2}(\*|[0-9]+)(-rc[0-9]*){0,1}$'
if [[ "${{github.ref_type}}" == "tag" ]] && [[ "${{github.event_name}}" == "create" ]] && [[ "$github_tag" =~ $rx ]]; then
export pub_method=pushRelease
fi
if [[ "$branch" == "" ]]; then
export branch=$github_tag
fi
if [[ "$tag" == "" ]]; then
export tag=$github_tag
fi
if [[ "${{secrets.OSS_KEY_ID}}" != "" && \
"${{secrets.OSS_KEY_SECRET}}" != "" && \
"${{secrets.OSS_ENDPOINT}}" != "" && \
Expand All @@ -69,10 +65,9 @@ jobs:
echo "::set-output name=pub_method::$pub_method"
echo "::set-output name=oss_exists::$oss_exists"
echo "::set-output name=ftp_exists::$ftp_exists"
- name: show environment
run: |
echo bin = ${{github.bin}}
echo bin = ${{steps.vars.outputs.bin}}
echo event = ${{github.event_name}}
echo github_repository: $GITHUB_REPOSITORY
echo vars.commit = ${{steps.vars.outputs.commit}}
Expand All @@ -95,19 +90,17 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Deps
env:
GOPROXY: "https://proxy.golang.org,direct"
GO111MODULE: "on"
run: |
sudo apt-get install ncftp ocl-icd-opencl-dev libhwloc-dev
sudo apt-get install ncftp
- name: Build
run: |
sudo make
make
mkdir ./${{steps.vars.outputs.bin}} && mv ./${{steps.vars.outputs.repo_name}} ./${{steps.vars.outputs.bin}}
- name: Zip Release
uses: TheDoctor0/zip-release@0.6.0
with:
Expand All @@ -119,6 +112,7 @@ jobs:
id: release
uses: ncipollo/release-action@v1
if: ${{ steps.vars.outputs.pub_method=='pushRelease' }}
continue-on-error: true
with:
artifacts: ${{steps.vars.outputs.artifact_name}}
tag: ${{ steps.vars.outputs.github_tag }}
Expand Down Expand Up @@ -150,14 +144,13 @@ jobs:
ossutil cp ./${{steps.vars.outputs.artifact_name}} ${{secrets.OSS_BUCKET}}
export signed_url=`ossutil sign ${{secrets.OSS_BUCKET}}/${{steps.vars.outputs.artifact_name}} --timeout 31104000 | sed -n 1p`
echo '::set-output name=oss_signed_url::$(signed_url)'
- name: upload artifacts
if: ${{ steps.vars.outputs.pub_method == 'pushTest' && steps.uploadftp.outcome != 'success' && steps.cposs.outcome != 'success' }}
if: ${{ steps.vars.outputs.pub_method == 'pushRelease' }}
continue-on-error: true
uses: actions/upload-artifact@v2
with:
name: ${{steps.vars.outputs.artifact_name}}
path: ./${{steps.vars.outputs.artifact_name}}
path: ./${{steps.vars.outputs.bin}}
if-no-files-found: error

- name: push god-eye
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15

- name: Deps
env:
GOPROXY: "https://proxy.golang.org,direct"
GO111MODULE: "on"
run: |
sudo apt-get install ocl-icd-opencl-dev libhwloc-dev
go-version: 1.17

- name: Build
env:
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Deps
env:
GOPROXY: "https://proxy.golang.org,direct"
GO111MODULE: "on"
run: |
sudo apt-get install ocl-icd-opencl-dev libhwloc-dev
go mod download

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: golangci-lint
env:
GOPROXY: "https://proxy.golang.org,direct"
Expand All @@ -29,6 +28,3 @@ jobs:
args: --timeout=30m --skip-dirs='[extern]'
skip-pkg-cache: true
skip-build-cache: true



Loading

0 comments on commit aaadc3a

Please sign in to comment.