Compare commits
12 commits
Author | SHA1 | Date | |
---|---|---|---|
607149c26c | |||
500fea5c37 | |||
c9cab14862 | |||
f8b524a540 | |||
94fa70ec60 | |||
5314f4e002 | |||
07de7f73b9 | |||
837813851b | |||
14c35bea08 | |||
132a58700a | |||
42e09a2ef0 | |||
ef96801df5 |
1 changed files with 8 additions and 65 deletions
73
.github/workflows/build.yml
vendored
73
.github/workflows/build.yml
vendored
|
@ -48,75 +48,18 @@ jobs:
|
||||||
env:
|
env:
|
||||||
ELECTRON_BUILDER_ARCH: x64
|
ELECTRON_BUILDER_ARCH: x64
|
||||||
|
|
||||||
- name: Create Release
|
- name: Rename AppImage with AMD64 Label
|
||||||
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/*-amd64-linux.AppImage"
|
|
||||||
|
|
||||||
build_linux_aarch64:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- name: Clone Main Repo
|
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://github.com/liamcottle/reticulum-meshchat reticulum-meshchat
|
for file in reticulum-meshchat/dist/*.AppImage; do
|
||||||
|
FILENAME=$(basename "$file")
|
||||||
- name: Get Latest Tag
|
NAME_WITHOUT_EXT="${FILENAME%.AppImage}"
|
||||||
working-directory: ./reticulum-meshchat
|
mv "$file" "reticulum-meshchat/dist/${NAME_WITHOUT_EXT}-amd64.AppImage"
|
||||||
run: |
|
done
|
||||||
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
|
- 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
|
||||||
omitDraftDuringUpdate: true
|
artifacts: "reticulum-meshchat/dist/ReticulumMeshChat-${{ env.LATEST_TAG }}-linux-amd64.AppImage"
|
||||||
omitNameDuringUpdate: true
|
|
||||||
artifacts: "reticulum-meshchat/dist/*-arm64-linux.AppImage"
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue