From c4a3595a6af2ed2b509cab702a6d7423fca83262 Mon Sep 17 00:00:00 2001 From: Kepler Vital Date: Thu, 4 Jul 2024 22:12:41 +0200 Subject: [PATCH] add workflow to test docker builds in CI --- .github/workflows/builds.yaml | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/builds.yaml diff --git a/.github/workflows/builds.yaml b/.github/workflows/builds.yaml new file mode 100644 index 000000000..5a5a55dee --- /dev/null +++ b/.github/workflows/builds.yaml @@ -0,0 +1,66 @@ +name: 'Deterministic builds' + +on: + workflow_dispatch: null + +jobs: + build-station: + name: 'build-station:optional' + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v4 + - uses: docker-practice/actions-setup-docker@master + timeout-minutes: 12 + - name: 'Deterministic build' + run: | + ./scripts/docker-build.sh --station + - name: 'Built hash' + run: | + BUILD_HASH=$(cat ./artifacts/station/station.wasm.gz.sha256) + echo "built hash: $BUILD_HASH" + build-upgrader: + name: 'build-upgrader:optional' + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v4 + - uses: docker-practice/actions-setup-docker@master + timeout-minutes: 12 + - name: 'Deterministic build' + run: | + ./scripts/docker-build.sh --upgrader + - name: 'Built hash' + run: | + BUILD_HASH=$(cat ./artifacts/upgrader/upgrader.wasm.gz.sha256) + echo "built hash: $BUILD_HASH" + build-control-panel: + name: 'build-control-panel:optional' + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v4 + - uses: docker-practice/actions-setup-docker@master + timeout-minutes: 12 + - name: 'Deterministic build' + run: | + ./scripts/docker-build.sh --control-panel + - name: 'Built hash' + run: | + BUILD_HASH=$(cat ./artifacts/control-panel/control_panel.wasm.gz.sha256) + echo "built hash: $BUILD_HASH" + build-wallet-dapp: + name: 'build-wallet-dapp:optional' + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v4 + - uses: docker-practice/actions-setup-docker@master + timeout-minutes: 12 + - name: 'Deterministic build' + run: | + ./scripts/docker-build.sh --wallet-dapp + - name: 'Built hash' + run: | + BUILD_HASH=$(cat ./artifacts/wallet-dapp/wallet_dapp.wasm.gz.sha256) + echo "built hash: $BUILD_HASH"