Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:

echo "build_version=$version" >> $GITHUB_OUTPUT

build-meshchat-package:
build-meshchat-openwrt-package:
needs: calculate-version
uses:
./.github/workflows/workflow-meshchat-package.yaml
./.github/workflows/workflow-meshchat-openwrt-package.yaml
with:
build_version: ${{ needs.calculate-version.outputs.build_version }}
build_dir: package/meshchat-ipkg

build-meshchat-api-package:
build-meshchat-debian-package:
needs: calculate-version
uses:
./.github/workflows/workflow-meshchat-api-package.yaml
./.github/workflows/workflow-meshchat-debian-package.yaml
with:
build_version: ${{ needs.calculate-version.outputs.build_version }}
build_dir: package/meshchat-ipkg
build_dir: package/meshchat-deb
42 changes: 42 additions & 0 deletions .github/workflows/workflow-meshchat-debian-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build MeshChat Package
on:
workflow_call:
inputs:
build_version:
required: true
type: string
build_dir:
required: true
type: string
ref:
required: false
type: string
default: ${{ github.ref_name }}

jobs:
create-meshchat-debian-package:
runs-on: ubuntu-latest
# container:
# image: registry.gitlab.com/wt0f/gitlab-runner-images/shell:latest
outputs:
package_file: ${{ steps.detect-package-file.outputs.file }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.ref }}
# - run: info "Populating the filesystem with MeshChat files"
- run: echo ${{ inputs.build_version }} > VERSION
- run: package/populate-meshchat-fs.sh ${{ inputs.build_dir }} debian
# - run: info "Updating version numbers to "
- run: package/update-version.sh ${{ inputs.build_dir }}
# - run: info "Packing up MeshChat files"
- run: dpkg-deb --root-owner-group --build ${{ inputs.build_dir }}
- run: mv package/meshchat-deb.deb meshchat_${{ inputs.build_version }}_all.deb
- id: detect-package-file
run: echo "file=meshchat_${{inputs.build_version }}_all.deb" >> $GITHUB_OUTPUT
- run: echo "${{ steps.detect-package-file.outputs.file }}"
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.detect-package-file.outputs.file }}
path: ${{ steps.detect-package-file.outputs.file }}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
default: ${{ github.ref_name }}

jobs:
create-meshchat-package:
create-meshchat-openwrt-package:
runs-on: ubuntu-latest
# container:
# image: registry.gitlab.com/wt0f/gitlab-runner-images/shell:latest
Expand All @@ -27,7 +27,7 @@ jobs:
ref: ${{ inputs.ref }}
# - run: info "Populating the filesystem with MeshChat files"
- run: echo ${{ inputs.build_version }} > VERSION
- run: package/populate-meshchat-fs.sh ${{ inputs.build_dir }}
- run: package/populate-meshchat-fs.sh ${{ inputs.build_dir }} openwrt
# - run: info "Updating version numbers to "
- run: package/update-version.sh ${{ inputs.build_dir }}
# - run: info "Packing up MeshChat files"
Expand Down
Loading