Skip to content

Commit

Permalink
ci: create optimized rust compilation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed Dec 19, 2023
1 parent 0358fad commit c17d181
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build artifacts

on:
push:
branches:
- ci/gha/build-artifacts

env:
CARGO_TERM_COLOR: always

jobs:
rust-test:
runs-on: ubuntu-latest
steps:
- name: "Checkout branch"
uses: actions/checkout@v4

- name: "Set up Rust caches"
uses: actions/cache@v3
id: rust-cache
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}

- name: Build optimized wasm files
run: bash scripts/wasm-out.sh

- name: Archive optimized wasm files
uses: actions/upload-artifact@v3
with:
name: optimized-wasm-files
path: |
artifacts

0 comments on commit c17d181

Please sign in to comment.