Skip to content

ci: update example

ci: update example #11

Workflow file for this run

# Do not edit this file directly. It is generated by Fluent Github Actions
name: plugin
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI Engine CLI
run: |
wget https://github.com/fluentci-io/fluentci-engine/releases/download/v0.2.5/fluentci-engine_v0.2.5_x86_64-unknown-linux-gnu.tar.gz
tar xvf fluentci-engine_v0.2.5_x86_64-unknown-linux-gnu.tar.gz
sudo mv fluentci-engine /usr/local/bin
- name: Set env
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "MODULE=https://github.com/fluent-ci-templates/rust-pipeline/releases/download/v0.10.1/rust.wasm" >> $GITHUB_ENV
- name: Add wasm32-unknown-unknown target
run: |
fluentci-engine call -m $MODULE -- \
target_add wasm32-unknown-unknown
- name: Build
run: |
fluentci-engine call -m $MODULE -- \
build \
--target wasm32-unknown-unknown \
--release
ls -ltr target/wasm32-unknown-unknown/release
working-directory: plugin