Compare commits
No commits in common. "main" and "v1.21.0" have entirely different histories.
1 changed files with 67 additions and 10 deletions
77
.github/workflows/build.yml
vendored
77
.github/workflows/build.yml
vendored
|
@ -48,18 +48,75 @@ jobs:
|
||||||
env:
|
env:
|
||||||
ELECTRON_BUILDER_ARCH: x64
|
ELECTRON_BUILDER_ARCH: x64
|
||||||
|
|
||||||
- name: Rename AppImage with AMD64 Label
|
|
||||||
run: |
|
|
||||||
for file in reticulum-meshchat/dist/*.AppImage; do
|
|
||||||
FILENAME=$(basename "$file")
|
|
||||||
NAME_WITHOUT_EXT="${FILENAME%.AppImage}"
|
|
||||||
mv "$file" "reticulum-meshchat/dist/${NAME_WITHOUT_EXT}-amd64.AppImage"
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
uses: https://github.com/ncipollo/release-action@v1
|
uses: https://github.com/ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: "${{ env.LATEST_TAG }}"
|
tag: ${{ env.LATEST_TAG }}
|
||||||
|
name: ${{ env.LATEST_TAG }}
|
||||||
|
draft: true
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
replacesArtifacts: true
|
replacesArtifacts: true
|
||||||
artifacts: "reticulum-meshchat/dist/ReticulumMeshChat-${{ env.LATEST_TAG }}-linux-amd64.AppImage"
|
omitDraftDuringUpdate: true
|
||||||
|
omitNameDuringUpdate: true
|
||||||
|
artifacts: "reticulum-meshchat/dist/*-amd64-linux.AppImage"
|
||||||
|
|
||||||
|
build_linux_aarch64:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- name: Clone Main Repo
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 https://github.com/liamcottle/reticulum-meshchat reticulum-meshchat
|
||||||
|
|
||||||
|
- name: Get Latest Tag
|
||||||
|
working-directory: ./reticulum-meshchat
|
||||||
|
run: |
|
||||||
|
git fetch --tags --quiet https://github.com/liamcottle/reticulum-meshchat
|
||||||
|
LATEST_TAG=$(git describe --tags --abbrev=0)
|
||||||
|
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
|
||||||
|
echo "Latest tag is $LATEST_TAG"
|
||||||
|
git checkout $LATEST_TAG
|
||||||
|
|
||||||
|
- name: Install NodeJS
|
||||||
|
uses: https://github.com/actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
|
||||||
|
- name: Install Python
|
||||||
|
uses: https://github.com/actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.11"
|
||||||
|
|
||||||
|
- name: Install Python Deps
|
||||||
|
working-directory: ./reticulum-meshchat
|
||||||
|
run: pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Install NodeJS Deps
|
||||||
|
working-directory: ./reticulum-meshchat
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Install Cross-Compilation Tools
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
||||||
|
|
||||||
|
- name: Build Electron App for AArch64
|
||||||
|
working-directory: ./reticulum-meshchat
|
||||||
|
run: npm run dist
|
||||||
|
env:
|
||||||
|
ELECTRON_BUILDER_ARCH: arm64
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: https://github.com/ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
tag: ${{ env.LATEST_TAG }}
|
||||||
|
name: ${{ env.LATEST_TAG }}
|
||||||
|
draft: true
|
||||||
|
allowUpdates: true
|
||||||
|
replacesArtifacts: true
|
||||||
|
omitDraftDuringUpdate: true
|
||||||
|
omitNameDuringUpdate: true
|
||||||
|
artifacts: "reticulum-meshchat/dist/*-arm64-linux.AppImage"
|
||||||
|
|
Loading…
Add table
Reference in a new issue