Skip to content

Commit

Permalink
ci: add GHA workflow to build and release artifacts (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang authored Dec 19, 2023
1 parent 0358fad commit 0da684b
Show file tree
Hide file tree
Showing 3 changed files with 305 additions and 297 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
build-artifacts-and-publish-release:
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

- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: true
title: CW Nibiru
files: |
artifacts/*
Loading

0 comments on commit 0da684b

Please sign in to comment.