Skip to content

Commit

Permalink
new workflow to build CLI & Wasmo together
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Feb 8, 2024
1 parent 043427e commit c96c375
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Wasmo & CLI binaries

on:
workflow_dispatch:
inputs:
version:
description: "Version number"

jobs:
build-and-upload-to-docker-hub:
runs-on: ubuntu-latest
name: Release Wasmo Docker Images
steps:
- name: Build docker images
uses: ./docker
with:
version: ${{ inputs.version }}
build-cli:
runs-on: ubuntu-latest
name: build-cli
steps:
- name: Build Wasmo CLI binaries
uses: ./cli
with:
version: ${{ inputs.version }}
push-to-crates-io:
runs-on: ubuntu-latest
name: Push on crates.io
steps:
- name: Build Wasmo CLI binaries
uses: ./cratesio


7 changes: 7 additions & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ jobs:
- stable
steps:
- uses: actions/checkout@v3
- name: Edit Toml
uses: ciiiii/toml-editor@1.0.0
with:
working-directory: "./cli"
file: "Cargo.toml"
key: "version"
value: ${{ inputs.version }}
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

- name: Update server package.json version
uses: jossef/action-set-json-field@v2.1
with:
file: server/package.json
field: version
value: ${{ inputs.version }}

- name: Update ui package.json version
uses: jossef/action-set-json-field@v2.1
with:
file: ui/package.json
field: version
value: ${{ inputs.version }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down

0 comments on commit c96c375

Please sign in to comment.