github.com/Finschia/finschia-sdk@v0.48.1/.github/workflows/release-sims.yml (about) 1 name: Release Sims 2 # Release Sims workflow runs long-lived (multi-seed & large block size) simulations 3 # This workflow only runs on a pull request added `release` label 4 on: 5 pull_request: 6 types: 7 - opened 8 - synchronize 9 - reopened 10 - labeled 11 branches: 12 - main 13 - rc*/* 14 - release/* 15 16 jobs: 17 cleanup-runs: 18 runs-on: ubuntu-latest 19 steps: 20 - uses: rokroskar/workflow-run-cleanup-action@master 21 env: 22 GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" 23 if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' && contains(github.event.pull_request.labels.*.name, 'release')" 24 25 build: 26 runs-on: ubuntu-latest 27 if: "!contains(github.event.head_commit.message, 'skip-sims') && contains(github.event.pull_request.labels.*.name, 'release')" 28 steps: 29 - uses: actions/checkout@v3 30 - uses: actions/setup-go@v4.0.1 31 with: 32 go-version: '1.20' 33 - run: | 34 make build 35 36 install-runsim: 37 runs-on: ubuntu-latest 38 needs: build 39 steps: 40 - uses: actions/setup-go@v4.0.1 41 with: 42 go-version: '1.20' 43 - name: install runsim 44 run: | 45 export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/runsim@v1.0.0 46 - uses: actions/cache@v3.3.1 47 with: 48 path: ~/go/bin 49 key: ${{ runner.os }}-go-runsim-binary 50 51 test-sim-multi-seed-long-part1: 52 runs-on: ubuntu-latest 53 needs: [build, install-runsim] 54 steps: 55 - uses: actions/checkout@v3 56 - uses: actions/setup-go@v4.0.1 57 with: 58 go-version: '1.20' 59 - uses: actions/cache@v3.3.1 60 with: 61 path: ~/go/bin 62 key: ${{ runner.os }}-go-runsim-binary 63 - name: test-sim-multi-seed-long-part1 64 env: 65 USE_PREFETCH: NO 66 USE_PRELOAD: 1,4 67 SAVE_BRANCH_LAUNCH_DEPTH: 1 68 run: | 69 make test-sim-multi-seed-long-part1 70 71 test-sim-multi-seed-long-part2: 72 runs-on: ubuntu-latest 73 needs: [build, install-runsim, test-sim-multi-seed-long-part1] 74 steps: 75 - uses: actions/checkout@v3 76 - uses: actions/setup-go@v4.0.1 77 with: 78 go-version: '1.20' 79 - uses: actions/cache@v3.3.1 80 with: 81 path: ~/go/bin 82 key: ${{ runner.os }}-go-runsim-binary 83 - name: test-sim-multi-seed-long-part2 84 env: 85 USE_PREFETCH: NO 86 USE_PRELOAD: 1,4 87 SAVE_BRANCH_LAUNCH_DEPTH: 1 88 run: | 89 make test-sim-multi-seed-long-part2 90 91 test-sim-multi-seed-long-part3: 92 runs-on: ubuntu-latest 93 needs: [build, install-runsim, test-sim-multi-seed-long-part2] 94 steps: 95 - uses: actions/checkout@v3 96 - uses: actions/setup-go@v4.0.1 97 with: 98 go-version: '1.20' 99 - uses: actions/cache@v3.3.1 100 with: 101 path: ~/go/bin 102 key: ${{ runner.os }}-go-runsim-binary 103 - name: test-sim-multi-seed-long-part3 104 env: 105 USE_PREFETCH: NO 106 USE_PRELOAD: 1,4 107 SAVE_BRANCH_LAUNCH_DEPTH: 1 108 run: | 109 make test-sim-multi-seed-long-part3