Skip to content

Commit

Permalink
ci: started work on e2e workflow, first step is to produce an optimiz…
Browse files Browse the repository at this point in the history
…ed build in the repo
  • Loading branch information
srdtrk committed Jun 20, 2023
1 parent 7c735b5 commit 93bff21
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: e2e

on:
push:
branches: [master]
paths-ignore:
- "e2e/wasms/**"

jobs:
build:
name: Optimized Build
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install cargo-run-script
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-run-script
- name: Run cargo optimize
uses: actions-rs/cargo@v1
with:
command: run-script
args: optimize
- name: Move artifacts
run: |
mkdir -p ./e2e/wasms
rm -rf ./e2e/wasms/*
mv ./artifacts/*.wasm ./e2e/wasms
- name: Commit and push
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add ./e2e/wasms
git commit -m "ci: created optimized build" -a
git push

0 comments on commit 93bff21

Please sign in to comment.