Add workflow that builds amm contracts #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Store contract artifacts | |
on: | |
push: | |
branches: | |
- add-workflow-to-store-artifacts | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: [self-hosted, Linux, X64, large] | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Cache Crates | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cargo | |
key: ${{ runner.os }}-rust-${{ hashFiles('rust-toolchain.toml') }} | |
restore-keys: | | |
${{ runner.os }}-rust | |
- name: Build contracts | |
run: make build-amm | |
- name: Print out files | |
run: | | |
find artifacts |