Skip to content

Commit

Permalink
feat: add wasm plugin for pkgx
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 8, 2024
1 parent 4c50e69 commit 8cc256f
Show file tree
Hide file tree
Showing 12 changed files with 569 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/devbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ on:
- main
jobs:
devbox-test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Fluent CI
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ on:
- main
jobs:
nix-test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Fluent CI
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/pkgx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ci
on:
push:
branches:
- main
jobs:
pkgx-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: rust
args: |
target_add wasm32-unknown-unknown
build --release --target wasm32-unknown-unknown
working-directory: pkgx/plugin
- name: Show pkgx version
run: |
fluentci run plugin/target/wasm32-unknown-unknown/release/pkgx.wasm setup
fluentci run plugin/target/wasm32-unknown-unknown/release/pkgx.wasm install jq
type jq
type pkgx
pkgx --version
working-directory: pkgx
9 changes: 9 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkgx/plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/*
Loading

0 comments on commit 8cc256f

Please sign in to comment.