Skip to content

Commit

Permalink
🚫 Disable Flatpak and AppImage builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett authored May 26, 2021
1 parent c52c607 commit 34d18f9
Showing 1 changed file with 56 additions and 56 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
echo "::set-output name=dotversion::$(cat package.json | sed -n 's|.*"firefox-display": "\([^"]*\)".*|\1|p')"
echo "::set-output name=shortsha::$(git rev-parse --short HEAD)"
echo "::set-output name=builddate::$(date +"%Y%m%d")"
echo "::set-output name=builddate::$(date +"%Y-%m-%d")"
linux-64:
name: 🐧 Linux (64-bit)
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -107,59 +107,59 @@ jobs:
name: dot-${{ needs.build-data.outputs.version }}.tar.bz2
path: ./dot-${{ needs.build-data.outputs.version }}.tar.bz2

flatpak-64:
name: 📦 Flatpak (64-bit)
needs: [build-data, linux-64]
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-3.38
options: --privileged

steps:
- name: Clone packaging scripts
run: git clone --recurse-submodules https://github.com/dothq/packages.git

- uses: actions/setup-node@v2
with:
node-version: '14'

- name: Download binaries
run: |
cd packages/flatpak
node download.js
tar -xvf dot.tar.bz2
- uses: bilelmoussaoui/flatpak-github-actions@v2
with:
bundle: dot-${{ needs.build-data.outputs.version }}.flatpak
manifest-path: './packages/flatpak/co.dothq.browser.nightly.yml'

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dot-${{ needs.build-data.outputs.version }}.flatpak
path: ./dot-${{ needs.build-data.outputs.version }}.flatpak

appimage-64:
name: 📦 AppImage (64-bit)
needs: [build-data, linux-64]
runs-on: ubuntu-latest
steps:
- name: Clone packaging scripts
run: git clone --recurse-submodules https://github.com/dothq/packages.git

- name: Build
run: |
cd packages/
./appimage/build.sh
cp ./appimage/Dot_Browser-x86_64.AppImage ../Dot_Browser-x86-64.AppImage
cp ./appimage/Dot_Browser-x86_64.AppImage.zsync ../Dot_Browser-x86-64.AppImage.zsync
mv ../Dot_Browser-x86-64.AppImage ../dot-${{ needs.build-data.outputs.version }}.AppImage
# flatpak-64:
# name: 📦 Flatpak (64-bit)
# needs: [build-data, linux-64]
# runs-on: ubuntu-latest
# container:
# image: bilelmoussaoui/flatpak-github-actions:gnome-3.38
# options: --privileged

# steps:
# - name: Clone packaging scripts
# run: git clone --recurse-submodules https://github.com/dothq/packages.git

# - uses: actions/setup-node@v2
# with:
# node-version: '14'

# - name: Download binaries
# run: |
# cd packages/flatpak
# node download.js
# tar -xvf dot.tar.bz2
# - uses: bilelmoussaoui/flatpak-github-actions@v2
# with:
# bundle: dot-${{ needs.build-data.outputs.version }}.flatpak
# manifest-path: './packages/flatpak/co.dothq.browser.nightly.yml'

# - name: Upload artifact
# uses: actions/upload-artifact@v2
# with:
# name: dot-${{ needs.build-data.outputs.version }}.flatpak
# path: ./dot-${{ needs.build-data.outputs.version }}.flatpak

# appimage-64:
# name: 📦 AppImage (64-bit)
# needs: [build-data, linux-64]
# runs-on: ubuntu-latest
# steps:
# - name: Clone packaging scripts
# run: git clone --recurse-submodules https://github.com/dothq/packages.git

# - name: Build
# run: |
# cd packages/
# ./appimage/build.sh
# cp ./appimage/Dot_Browser-x86_64.AppImage ../Dot_Browser-x86-64.AppImage
# cp ./appimage/Dot_Browser-x86_64.AppImage.zsync ../Dot_Browser-x86-64.AppImage.zsync
# mv ../Dot_Browser-x86-64.AppImage ../dot-${{ needs.build-data.outputs.version }}.AppImage

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dot-${{ needs.build-data.outputs.version }}.AppImage
path: ./dot-${{ needs.build-data.outputs.version }}.AppImage
# - name: Upload artifact
# uses: actions/upload-artifact@v2
# with:
# name: dot-${{ needs.build-data.outputs.version }}.AppImage
# path: ./dot-${{ needs.build-data.outputs.version }}.AppImage

# linux-32:
# name: 🐧 Linux (32-bit)
Expand Down Expand Up @@ -602,7 +602,7 @@ jobs:
release:
name: 🚀 Release
runs-on: ubuntu-latest
needs: [build-data, mac, windows-64, appimage-64, flatpak-64, linux-64, source]
needs: [build-data, mac, windows-64, linux-64, source]
steps:
- uses: actions/checkout@v2

Expand All @@ -617,8 +617,8 @@ jobs:
with:
github-token: ${{ secrets.ROBOT_TOKEN }}
version: "${{ needs.build-data.outputs.version }}-${{ needs.build-data.outputs.build_date }}"
name: "Nightly v${{ needs.build-data.outputs.version }} (${{ needs.build-data.outputs.build_date }})"
assets: '["dot-${{ needs.build-data.outputs.version }}.dmg/dot-${{ needs.build-data.outputs.version }}.dmg", "dot-${{ needs.build-data.outputs.version }}.exe/dot-${{ needs.build-data.outputs.version }}.exe", "dot-${{ needs.build-data.outputs.version }}.source.tar.xz/dot-${{ needs.build-data.outputs.version }}.source.tar.xz", "dot-${{ needs.build-data.outputs.version }}.tar.bz2/dot-${{ needs.build-data.outputs.version }}.tar.bz2", "dot-${{ needs.build-data.outputs.version }}.AppImage/dot-${{ needs.build-data.outputs.version }}.AppImage", "dot-${{ needs.build-data.outputs.version }}.flatpak/dot-${{ needs.build-data.outputs.version }}.flatpak"]'
name: "Nightly v${{ needs.build-data.outputs.version }} - ${{ needs.build-data.outputs.build_date }}"
assets: '["dot-${{ needs.build-data.outputs.version }}.dmg/dot-${{ needs.build-data.outputs.version }}.dmg", "dot-${{ needs.build-data.outputs.version }}.exe/dot-${{ needs.build-data.outputs.version }}.exe", "dot-${{ needs.build-data.outputs.version }}.source.tar.xz/dot-${{ needs.build-data.outputs.version }}.source.tar.xz", "dot-${{ needs.build-data.outputs.version }}.tar.bz2/dot-${{ needs.build-data.outputs.version }}.tar.bz2"]'
body_path: "/home/runner/work/browser-desktop/browser-desktop/.github/RELEASE_TEMPLATE.md"
overwrite: true

Expand Down

0 comments on commit 34d18f9

Please sign in to comment.