Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
c7e934b
chore(release): update changelog and bump version to 0.24.0-dev.20 (#…
shumkov Apr 18, 2023
b8e71d8
docs: update changelog
shumkov Apr 18, 2023
6260109
chore(dashamte): remove deprecation warning on start (#925)
Apr 18, 2023
2de157f
ci: fix release workflow
shumkov Apr 19, 2023
c5f433d
ci: fix release workflow once again
shumkov Apr 19, 2023
84e53b1
ci: disable sccache
shumkov Apr 19, 2023
a538b07
ci: fix the release jobs flow
shumkov Apr 19, 2023
0631501
build(dashamte): remove deb release docker dependencies (#934)
Apr 19, 2023
343f764
fix(dashamte): Can't find begoo/index with `yarn dashmate setup` (#933)
Apr 19, 2023
bdeeb29
build(dashmate): build only linux tarballs (#936)
Apr 19, 2023
5123054
feat(dashmate): check system requirements before setup (#935)
Apr 19, 2023
bc4129e
chore(release): update changelog and bump version to 0.24.0-dev.21 (#…
shumkov Apr 19, 2023
b12f9c6
doc: prerequisites for wasm build (#929)
Apr 20, 2023
f7dc3f3
ci: remove drive node.js binding release
shumkov Apr 20, 2023
5e268e5
build(dashamte): build arm64 deb file instead of armel (#943)
Apr 20, 2023
604afa8
chore(release): update changelog and bump version to 0.24.0-dev.22 (#…
shumkov Apr 20, 2023
4566f8e
build(dashmate): fix removing unnecessary packages
shumkov Apr 20, 2023
f6550dd
chore(release): update changelog and bump version to 0.24.0-dev.23 (#…
shumkov Apr 20, 2023
5319f8a
fix(dashamte): wrong envoy config path on windows (#949)
Apr 21, 2023
2fc6db0
feat(wasm-dpp): state_transition_fee_validator binding and tests (#874)
antouhou Apr 24, 2023
137e120
chore(release): update changelog and bump version to 0.24.0-dev.24 (#…
shumkov Apr 24, 2023
4ed096f
feat(dashamte): better ZeroSSL error messages (#950)
Apr 24, 2023
84d159b
fix(dashmate): select number of masternodes during local setup freeze…
Apr 24, 2023
aa23c8c
fix(dashmate): reward shares can be negative during HP masternode reg…
Apr 24, 2023
87c3e7b
fix(dashmate): invalid mn register command in output of dashmate setu…
Apr 24, 2023
0f57950
fix(dashmate): ability to work with non-default docker socket path (#…
Apr 24, 2023
81647fe
fix(dashmate): form accepts invalid BLS key (#961)
Apr 24, 2023
fe68217
fix(test-suite): expects identities for invalid mns (#968)
shumkov Apr 24, 2023
8e4f531
feat(dashmate): verbose `connect ENOENT /var/run/docker.sock` error (…
Apr 24, 2023
851a9da
fix(dashmate): empty masternode status while syncing (#970)
Apr 25, 2023
b768de1
fix(dashmate): yaml package security vulnerability (#975)
Apr 25, 2023
3a1fea8
feat(dashmate): set random core rpc usename and password on setup (#973)
Apr 26, 2023
7ddb622
build(dashmate): remove MacOs malicious software warning (#977)
Apr 26, 2023
d8482ef
fix(dashmate): already configured preset is ignored (#974)
shumkov Apr 26, 2023
a50cbe2
chore(release): update changelog and bump version to 0.24.0-dev.25 (#…
Apr 26, 2023
56e911d
build(dashmate): prepare MacOs build for notarization (#985)
Apr 27, 2023
83883ff
build(dashmate): better versioning (#988)
Apr 27, 2023
c6d0474
chore(release): update changelog and bump version to 0.24.0-dev.26 (#…
Apr 27, 2023
2e984df
fix(dashmate)!: multiple issues in the reset command (#991)
shumkov Apr 28, 2023
228e0bc
chore(release): update changelog and bump version to 0.24.0-dev.27 (#…
shumkov Apr 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
224 changes: 61 additions & 163 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
name: Release NPM packages
runs-on: self-hosted
if: github.event_name != 'workflow_dispatch'
needs:
- build-rs-drive-nodejs
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
Expand Down Expand Up @@ -80,12 +78,6 @@ jobs:
env:
CARGO_BUILD_PROFILE: release

- name: Download prebuild artifacts
uses: actions/download-artifact@v3
with:
name: prebuilds
path: packages/rs-drive-nodejs/prebuilds

- name: Set suffix
uses: actions/github-script@v6
id: suffix
Expand Down Expand Up @@ -134,6 +126,20 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: wasm32-unknown-unknown

- name: Setup Cargo cache
uses: Swatinem/rust-cache@v2
with:
# Don't cache ./target, as it takes tons of space, use sccache instead.
cache-targets: false
# We set a shared key, as our cache is reusable between jobs
shared-key: rust-cargo

- name: Setup Rust compilation cache
uses: mozilla-actions/sccache-action@v0.0.3
with:
Expand Down Expand Up @@ -258,6 +264,20 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: wasm32-unknown-unknown

- name: Setup Cargo cache
uses: Swatinem/rust-cache@v2
with:
# Don't cache ./target, as it takes tons of space, use sccache instead.
cache-targets: false
# We set a shared key, as our cache is reusable between jobs
shared-key: rust-cargo

- name: Setup Rust compilation cache
uses: mozilla-actions/sccache-action@v0.0.3
with:
Expand Down Expand Up @@ -389,6 +409,20 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: wasm32-unknown-unknown

- name: Setup Cargo cache
uses: Swatinem/rust-cache@v2
with:
# Don't cache ./target, as it takes tons of space, use sccache instead.
cache-targets: false
# We set a shared key, as our cache is reusable between jobs
shared-key: rust-cargo

- name: Setup Rust compilation cache
uses: mozilla-actions/sccache-action@v0.0.3
with:
Expand Down Expand Up @@ -583,6 +617,20 @@ jobs:
- name: Check out repo
uses: actions/checkout@v3

- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: wasm32-unknown-unknown

- name: Setup Cargo cache
uses: Swatinem/rust-cache@v2
with:
# Don't cache ./target, as it takes tons of space, use sccache instead.
cache-targets: false
# We set a shared key, as our cache is reusable between jobs
shared-key: rust-cargo

- name: Login to DockerHub
uses: docker/login-action@v2
with:
Expand Down Expand Up @@ -697,161 +745,6 @@ jobs:
ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
CARGO_BUILD_PROFILE=release

# TODO: Implement yarn and rust cache
build-rs-drive-nodejs:
name: Build Drive Node.JS binding
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
node_arch: x64
compiler: gnu
platform: unknown-linux
- os: ubuntu-22.04
arch: x86_64
node_arch: x64
compiler: musl
platform: unknown-linux
- os: ubuntu-22.04
arch: aarch64
node_arch: arm64
compiler: gnu
platform: unknown-linux
- os: ubuntu-22.04
arch: aarch64
node_arch: arm64
compiler: musl
platform: unknown-linux
- os: macos-11
arch: x86_64
platform: apple-darwin
- os: macos-11
arch: aarch64
node_arch: arm64
platform: apple-darwin

runs-on: ${{ matrix.os }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
CARGO_INCREMENTAL: "false"
steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Setup Node.JS
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Enable corepack
run: corepack enable

- name: Disable NPM audit
run: npm config set audit false

- name: Enable Yarn unplugged modules cache
uses: actions/cache@v3
with:
path: ".yarn/unplugged"
key: ${{ runner.os }}-yarn-unplugged-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-unplugged-

- name: Install dependencies
run: yarn install

- name: Set target name
uses: actions/github-script@v6
id: set-target
with:
script: |
let target = '${{ matrix.arch }}-${{ matrix.platform }}';

if ('${{ matrix.compiler }}') {
target += '-${{ matrix.compiler }}';
}

core.info(`Set target ${target}`);

return target;
result-encoding: string

- name: Setup Rust
if: ${{ runner.os == 'macOS' }}
uses: ./.github/actions/rust
with:
toolchain: stable
target: ${{ steps.set-target.outputs.result }}

- name: Setup Cargo cache
uses: Swatinem/rust-cache@v2
with:
# Don't cache ./target, as it takes tons of space, use sccache instead.
cache-targets: false
# We set a shared key, as our cache is reusable between jobs
shared-key: rust-cargo

- name: Setup Rust compilation cache
if: ${{ runner.os == 'macOS' }}
uses: mozilla-actions/sccache-action@v0.0.3
with:
version: "v0.4.1"

- name: Set LIBC argument
uses: actions/github-script@v6
id: set-libc-arg
with:
script: |
let env = '';

if (${{ matrix.compiler == 'musl' }}) {
env = '-l musl'
}

core.info(`Set LIBC env to "${env}"`);

return env;
result-encoding: string

- name: Build for Linux (x86)
if: ${{ runner.os == 'Linux' && matrix.arch == 'x86_64' }}
uses: docker://messense/rust-musl-cross:x86_64-musl
with:
workdir: /github/workspace/
entrypoint: packages/rs-drive-nodejs/docker/build.sh
args: -a ${{ matrix.node_arch }} -t ${{ steps.set-target.outputs.result }} ${{ steps.set-libc-arg.outputs.result }}

- name: Build for Linux (aarch64)
if: ${{ runner.os == 'Linux' && matrix.arch == 'aarch64' }}
uses: docker://messense/rust-musl-cross:aarch64-musl
with:
workdir: /github/workspace/
entrypoint: packages/rs-drive-nodejs/docker/build.sh
args: -a ${{ matrix.node_arch }} -t ${{ steps.set-target.outputs.result }} ${{ steps.set-libc-arg.outputs.result }}

- name: Build for Mac OS
if: ${{ runner.os == 'macOS' }}
run: yarn workspace @dashevo/rs-drive run build
env:
ARCH: ${{ matrix.node_arch }} # Overwrite current arch with target one
CARGO_BUILD_TARGET: ${{ steps.set-target.outputs.result }}
CARGO_BUILD_PROFILE: release

- name: Upload prebuild artifacts
uses: actions/upload-artifact@v3
with:
name: prebuilds
path: packages/rs-drive-nodejs/prebuilds/

release-dashmate:
name: Release Dashmate packages
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -965,6 +858,11 @@ jobs:
name: dashmate
path: packages/dashmate/dist/**

- name: Notarize MacOS Release Build
if: runner.os == 'macOS'
run: |
find packages/dashmate/dist/ -name '*.pkg' -exec sh -c 'xcrun notarytool submit "{}" --apple-id "${{ secrets.MACOS_APPLE_ID }}" --team-id "${{ secrets.MACOS_TEAM_ID }}" --password "${{ secrets.MACOS_NOTARIZING_PASSWORD }}" --wait;' \;

- name: Upload artifacts to release
uses: softprops/action-gh-release@v0.1.15
if: github.event_name == 'release'
Expand Down
Loading