-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) Β· 1.32 KB
/
buildx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: ci
on:
push:
branches:
- main
paths:
- .github/workflows/buildx.yml
- "buildx/**"
jobs:
test:
runs-on: ubuntu-latest
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: buildx/plugin
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Dagger Pipelines
run: |
fluentci run plugin/target/wasm32-unknown-unknown/release/buildx.wasm build --platform linux/amd64,linux/arm64 -t demo:latest example
dagger functions
dagger call build --src . --path example --tag demo:latest --platform linux/amd64,linux/arm64
working-directory: buildx
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.41
- name: Publish package
run: deno publish --allow-slow-types
working-directory: buildx