diff --git a/.github/workflows/checkpoints.yml b/.github/workflows/checkpoints.yml index b0508ea5963..43cc2155ca0 100644 --- a/.github/workflows/checkpoints.yml +++ b/.github/workflows/checkpoints.yml @@ -7,45 +7,52 @@ on: - cron: "*/10 * * * *" # for test jobs: - build-ubuntu: - name: Build Ubuntu - runs-on: buildjet-8vcpu-ubuntu-2204 - steps: - # To help investigate transient test failures - - run: lscpu - # find the nearest S3 space for storing cache files - - name: Show IP - run: curl ifconfig.me - continue-on-error: true - - name: Checkout Sources - uses: actions/checkout@v3 - - name: Install Apt Dependencies - run: | - sudo make install-deps - - name: Cargo Install - run: make install - - uses: actions/upload-artifact@v3 - with: - name: forest-${{ runner.os }} - path: | - ~/.cargo/bin/forest* - if-no-files-found: error + # build-ubuntu: + # name: Build Ubuntu + # runs-on: buildjet-8vcpu-ubuntu-2204 + # steps: + # # To help investigate transient test failures + # - run: lscpu + # - run: df -h + # # find the nearest S3 space for storing cache files + # - name: Show IP + # run: curl ifconfig.me + # continue-on-error: true + # - name: Checkout Sources + # uses: actions/checkout@v3 + # - name: Install Apt Dependencies + # run: | + # sudo make install-deps + # - name: Cargo Install + # run: make install + # - uses: actions/upload-artifact@v3 + # with: + # name: forest-${{ runner.os }} + # path: | + # ~/.cargo/bin/forest* + # if-no-files-found: error + # - run: df -h update_checkpoints: needs: - build-ubuntu - runs-on: buildjet-8vcpu-ubuntu-2204 - steps: - - name: Checkout Sources - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 - with: - name: forest-${{ runner.os }} - path: ~/.cargo/bin - # Permissions are lost during artifact-upload - # https://github.com/actions/upload-artifact#permission-loss - - name: Set permissions - run: | - chmod +x ~/.cargo/bin/forest* + runs-on: buildjet-8vcpu-ubuntu-2204 + steps: + - name: disk space + run: df -h + - name: download forest-cli binary + run: curl -LJO https://github.com/ChainSafe/forest/releases/download/v0.12.1/forest-v0.12.1-linux-amd64.zip && unzip forest-v0.12.1-linux-amd64.zip && cp forest-v0.12.1/forest-cli . + + # - name: Checkout Sources + # uses: actions/checkout@v3 + # - uses: actions/download-artifact@v3 + # with: + # name: forest-${{ runner.os }} + # path: ~/.cargo/bin + # # Permissions are lost during artifact-upload + # # https://github.com/actions/upload-artifact#permission-loss + # - name: Set permissions + # run: | + # chmod +x ~/.cargo/bin/forest* - name: mark generate_checkpoints as executable run: chmod +x scripts/generate_checkpoints.sh - name: update checkpoints diff --git a/scripts/generate_checkpoints.sh b/scripts/generate_checkpoints.sh index dd254705b94..1be84caa580 100755 --- a/scripts/generate_checkpoints.sh +++ b/scripts/generate_checkpoints.sh @@ -13,17 +13,23 @@ echo " # This file was generated with \\\`forest-cli archive checkpoints\\\` # " > build/known_blocks.yaml +pwd + echo "Disk space" df -h -# import calibnet snapshot -forest-cli --chain calibnet snapshot fetch -# populate checkpoints for calibnet -forest-cli archive checkpoints "$(find . -name "forest_snapshot_calibnet*.forest.car.zst")" >> build/known_blocks.yaml +# # import calibnet snapshot +# forest-cli --chain calibnet snapshot fetch +# # populate checkpoints for calibnet +# forest-cli archive checkpoints "$(find . -name "forest_snapshot_calibnet*.forest.car.zst")" >> build/known_blocks.yaml + +# rm "$(find . -name "forest_snapshot_calibnet*.forest.car.zst")" -rm "$(find . -name "forest_snapshot_calibnet*.forest.car.zst")" +# cat build/known_blocks.yaml # import mainnet snapshot forest-cli --chain mainnet snapshot fetch # populate checkpoints for mainnet forest-cli archive checkpoints "$(find . -name "forest_snapshot_mainnet*.forest.car.zst")" >> build/known_blocks.yaml + +cat build/known_blocks.yaml