Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c7bea50
ci: cache for WASM DPP integration
shumkov Apr 13, 2023
2995066
ci: increase timeouts and remove extra stats
shumkov Apr 13, 2023
13f2d0a
ci: disable cargo incremental build
shumkov Apr 13, 2023
f4b3a81
ci: add sccache vars output
shumkov Apr 13, 2023
2ac8340
ci: some optimizations
shumkov Apr 13, 2023
f2c270a
build: fix arguments in docker images
shumkov Apr 13, 2023
e89e25f
Merge branch 'feat/wasm-dpp-integration' into feat/wasm-dpp-integrati…
shumkov Apr 13, 2023
501019d
ci: switch to self-hosted runner
shumkov Apr 13, 2023
b6178fa
chore: empty commit to fix CI
shumkov Apr 13, 2023
8938a25
ci: switch back normal
shumkov Apr 13, 2023
6ff2693
chore: enable self-hosted for test suite
strophy Apr 14, 2023
f88be12
chore: enable self-hosted for test-suite browsers
strophy Apr 14, 2023
14260da
build: remove apt cache
shumkov Apr 14, 2023
2ad9671
ci: enable self-hosted, adjust timeouts and cache key
shumkov Apr 14, 2023
3a826e5
ci: install chrome
shumkov Apr 14, 2023
7675849
chore: empty commit to fix CI
shumkov Apr 14, 2023
bf7ffbc
ci: fix back docker mount cache
shumkov Apr 14, 2023
fcda9d0
ci: fix release workflow
shumkov Apr 14, 2023
20b8f1d
chore: empty commit to trigger fresh ci
strophy Apr 14, 2023
e0a303c
ci: login to docker hub
shumkov Apr 14, 2023
a43c34c
Merge remote-tracking branch 'origin/feat/wasm-dpp-integration-ci' in…
shumkov Apr 14, 2023
c06d807
chore: empty commit to fix CI
shumkov Apr 14, 2023
d9f372d
Merge branch 'feat/wasm-dpp-integration' into feat/wasm-dpp-integrati…
shumkov Apr 17, 2023
c3cde96
build: update base image
shumkov Apr 17, 2023
8294010
ci: chrome already installed
shumkov Apr 17, 2023
c973cc1
Merge branch 'feat/wasm-dpp-integration' into feat/wasm-dpp-integrati…
shumkov Apr 17, 2023
b3097bf
ci: test secret
shumkov Apr 17, 2023
2564b8f
chore: empty commit to fix CI
shumkov Apr 17, 2023
d91bb5c
ci: test secret
shumkov Apr 17, 2023
5807c44
Merge branch 'feat/wasm-dpp-integration' into feat/wasm-dpp-integrati…
shumkov Apr 17, 2023
3015e06
Merge branch 'feat/wasm-dpp-integration' into feat/wasm-dpp-integrati…
shumkov Apr 17, 2023
675364b
ci: test secret
shumkov Apr 17, 2023
b9b4f0d
ci: fix secret
shumkov Apr 17, 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
145 changes: 83 additions & 62 deletions .github/workflows/all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,22 @@ jobs:

test-suite:
name: Run Platform Test Suite
runs-on: ubuntu-22.04
timeout-minutes: 60
runs-on: self-hosted # ubuntu-22.04
timeout-minutes: 30
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:
Expand All @@ -81,27 +91,18 @@ jobs:
toolchain: stable
target: wasm32-unknown-unknown

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Setup Cargo cache
uses: Swatinem/rust-cache@v2
with:
version: "v0.4.1"
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
# 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: Configure sccache
uses: actions/github-script@v6
- name: Setup Rust compilation cache
uses: mozilla-actions/sccache-action@v0.0.3
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');

- name: Run sccache stat for check
shell: bash
run: ${SCCACHE_PATH} --show-stats

# - name: Enable Rust cache
# uses: Swatinem/rust-cache@v2
version: "v0.4.1"

- name: Enable corepack
run: corepack enable
Expand All @@ -125,26 +126,22 @@ jobs:

- name: Set up Docker BuildX
id: buildx
uses: docker/setup-buildx-action@v2.5.0
uses: docker/setup-buildx-action@v2

- name: Enable docker cache mount
uses: actions/cache@v3
with:
path: /tmp/buildkit-cache/buildkit-state.tar
key: ${{ runner.os }}-buildkit-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit

- name: Load docker cache mount
uses: dashevo/gh-action-cache-buildkit-state@v1
with:
version: v0.10.4
install: true
driver-opts: image=moby/buildkit:buildx-stable-1

# - name: Enable buildkit cache
# uses: actions/cache@v3
# with:
# path: /tmp/buildkit-cache/buildkit-state.tar
# key: ${{ runner.os }}-buildkit-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildkit-

# - name: Load buildkit state from cache
# uses: dashevo/gh-action-cache-buildkit-state@skip-cachemount
# with:
# builder: buildx_buildkit_${{ steps.buildx.outputs.name }}0
# cache-path: /tmp/buildkit-cache
# cache-max-size: 6gb
builder: buildx_buildkit_${{ steps.buildx.outputs.name }}0
cache-path: /tmp/buildkit-cache
cache-max-size: 3g

- name: Setup local network
run: yarn configure
Expand All @@ -161,9 +158,19 @@ jobs:

test-suite-browsers:
name: Run Platform Test Suite in Browsers
runs-on: ubuntu-22.04
timeout-minutes: 60
runs-on: self-hosted # ubuntu-22.04
timeout-minutes: 30
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
CARGO_INCREMENTAL: "false"
steps:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Check out repo
uses: actions/checkout@v3

Expand All @@ -178,8 +185,18 @@ jobs:
toolchain: stable
target: wasm32-unknown-unknown

- name: Enable Rust cache
- 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:
version: "v0.4.1"

- name: Enable corepack
run: corepack enable
Expand All @@ -204,25 +221,21 @@ jobs:
- name: Set up Docker BuildX
id: buildx
uses: docker/setup-buildx-action@v2
with:
version: v0.9.1
install: true
driver-opts: image=moby/buildkit:buildx-stable-1

- name: Enable buildkit cache
- name: Enable docker cache mount
uses: actions/cache@v3
with:
path: /tmp/buildkit-cache/buildkit-state.tar
key: ${{ runner.os }}-buildkit-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-
${{ runner.os }}-buildkit

- name: Load buildkit state from cache
uses: dashevo/gh-action-cache-buildkit-state@skip-cachemount
- name: Load docker cache mount
uses: dashevo/gh-action-cache-buildkit-state@v1
with:
builder: buildx_buildkit_${{ steps.buildx.outputs.name }}0
cache-path: /tmp/buildkit-cache
cache-max-size: 6gb
cache-max-size: 3g

- name: Setup local network
run: yarn configure
Expand All @@ -248,6 +261,12 @@ jobs:
- 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:
Expand All @@ -264,10 +283,19 @@ jobs:
with:
toolchain: stable
target: wasm32-unknown-unknown
components: clippy

- name: Setup wasm-bindgen
run: cargo install -f wasm-bindgen-cli
- 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:
version: "v0.4.1"

- name: Enable corepack
run: corepack enable
Expand All @@ -287,14 +315,7 @@ jobs:
run: yarn install

- name: Build package and dependencies
run: yarn build --filter "+${{ inputs.package }}"
if: ${{ !inputs.start-local-network }}

- name: Build all packages
run: yarn build
if: ${{ inputs.start-local-network }}
run: yarn build --filter "+dash"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:javascript"
2 changes: 2 additions & 0 deletions .github/workflows/dapi-grpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ jobs:
uses: ./.github/workflows/js-checks.yml
with:
package: '@dashevo/dapi-grpc'
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/dapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ jobs:
uses: ./.github/workflows/js-checks.yml
with:
package: '@dashevo/dapi'
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/dash-spv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ jobs:
uses: ./.github/workflows/js-checks.yml
with:
package: '@dashevo/dash-spv'
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/dashmate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ jobs:
uses: ./.github/workflows/js-checks.yml
with:
package: 'dashmate'
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/dashpay-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ jobs:
uses: ./.github/workflows/js-checks.yml
with:
package: '@dashevo/dashpay-contract'
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
Loading