Skip to content

Commit

Permalink
ci: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Apr 9, 2024
1 parent a1b5687 commit 11a7db8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Setup FluentCI
name: Setup FluentCI With Plugin

on:
push:
Expand All @@ -8,14 +8,16 @@ on:

jobs:
setup-fluentci:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup FluentCI
uses: ./
with:
dagger-version: 0.10.0
wasm: true
pipeline: base_pipeline
args: hello Tsiry Sandratraina
2 changes: 1 addition & 1 deletion .github/workflows/run-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Setup FluentCI
name: Setup FluentCI With Params

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion dist/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (!process.env.RUNNER_TEMP) {
}
setup({
daggerVersion: action.getInput("dagger-version"),
wasm: action.getInput("wasm"),
wasm: action.getInput("wasm") === "false" ? false : action.getInput("wasm"),
args: action.getInput("args"),
pipeline: action.getInput("pipeline"),
})
Expand Down
4 changes: 3 additions & 1 deletion dist/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export default async ({ daggerVersion, wasm, pipeline, args, }) => {
if (process.platform === "win32") {
throw new Error("FluentCI is not supported on Windows");
}
await installDocker();
if (!wasm) {
await installDocker();
}
await exec("sh", [
"-c",
"curl -fsSL https://deno.land/x/install/install.sh | sh",
Expand Down
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (!process.env.RUNNER_TEMP) {

setup({
daggerVersion: action.getInput("dagger-version"),
wasm: action.getInput("wasm"),
wasm: action.getInput("wasm") === "false" ? false : action.getInput("wasm"),
args: action.getInput("args"),
pipeline: action.getInput("pipeline"),
})
Expand Down
4 changes: 3 additions & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export default async ({
throw new Error("FluentCI is not supported on Windows");
}

await installDocker();
if (!wasm) {
await installDocker();
}

await exec("sh", [
"-c",
Expand Down

0 comments on commit 11a7db8

Please sign in to comment.