laconicd/.github/workflows/release-sims.yml
Daniel Choi 6fa5fafb12
actions: sim, rc-sim (#463)
* actions: sim, rc-sim

* Update .github/workflows/release-sims.yml

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update .github/workflows/sims.yml

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* bump dep

* use development

* update Makefile

* update Makefile PHONY

* fix makefile for tests

* attempt fix

* change branch

* include development branch

* make runsim

* undo

* fix binary typo

* WIP: test - hard code binary

* try fix

* move vars

* fix

* try go get again

* fix

* comments; skip-sims

* final update; skip-sims

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-08-21 05:01:19 -04:00

43 lines
1.3 KiB
YAML

name: Release Sims
# Release Sims workflow runs long-lived (multi-seed & large block size) simulations of 500 blocks.
# This workflow only runs on a pull request when the branch contains rc** (rc1/vX.X.x)
# This release workflow *cannot* be skipped with the 'skip-sims' commit message.
on:
pull_request:
branches:
- "rc**"
jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/development'"
install-runsim:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-sims')"
steps:
- name: install runsim
run: |
export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/runsim@v1.0.0
- uses: actions/cache@v2.1.1
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
test-sim-multi-seed-long:
runs-on: ubuntu-latest
needs: install-runsim
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2.1.1
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
- name: test-sim-multi-seed-long
run: |
make test-sim-multi-seed-long