Skip to content

Update dump workflow to use RELEASE secret #38

Update dump workflow to use RELEASE secret

Update dump workflow to use RELEASE secret #38

Workflow file for this run

name: Build
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build Extension
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-wasip2
- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Cache target directory
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-target-
- name: Build extension
run: cargo build --release --target wasm32-wasip2
- name: Prepare artifact
run: |
mkdir -p dist
cp target/wasm32-wasip2/release/emmylua.wasm dist/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: emmylua-extension
path: dist/emmylua.wasm