Skip to content

Commit

Permalink
feat: add wasm plugin for flox
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 9, 2024
1 parent 7860f41 commit e224d13
Show file tree
Hide file tree
Showing 10 changed files with 565 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/flox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci
on:
push:
branches:
- main
jobs:
flox-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: flox/plugin
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Show flox version
run: |
fluentci run plugin/target/wasm32-unknown-unknown/release/flox.wasm setup
type flox
flox --version
working-directory: flox
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NIX_CONFIG: extra-access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
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 flox/plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/*
Loading

0 comments on commit e224d13

Please sign in to comment.