Browse Source

ci: Enable arm64 builds

pull/385/head
jld3103 2 years ago
parent
commit
4c97419770
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 64
      .github/workflows/publish.yaml

64
.github/workflows/publish.yaml

@ -122,35 +122,35 @@ jobs:
path: packages/app/build/linux/x64/release/bundle/*
if-no-files-found: error
# linux_arm64:
# name: Linux arm64
# runs-on: ubuntu-22.04
# needs: setup
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Set docker image
# id: docker_image
# run: |
# echo "local=nextcloud-neon-build-linux-arm64:${{ needs.setup.outputs.flutter_version }}" >> $GITHUB_OUTPUT
# echo "remote=ghcr.io/$GITHUB_REPOSITORY/build-linux-arm64:${{ needs.setup.outputs.flutter_version }}" >> $GITHUB_OUTPUT
# - run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# with:
# platforms: arm64
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# with:
# platforms: linux/arm64
#
# - name: Build
# env:
# FLUTTER_VERSION: ${{ needs.setup.outputs.flutter_version }}
# run: ./tool/build-app.sh linux/arm64 --build-number="${{ needs.setup.outputs.build_number }}"
#
# - uses: actions/upload-artifact@v3
# with:
# name: Linux arm64
# path: packages/app/build/linux/arm64/release/bundle/*
# if-no-files-found: error
linux_arm64:
name: Linux arm64
runs-on: ubuntu-22.04
needs: setup
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set docker image
id: docker_image
run: |
echo "local=nextcloud-neon-build-linux-arm64:${{ needs.setup.outputs.flutter_version }}" >> $GITHUB_OUTPUT
echo "remote=ghcr.io/$GITHUB_REPOSITORY/build-linux-arm64:${{ needs.setup.outputs.flutter_version }}" >> $GITHUB_OUTPUT
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/arm64
- name: Build
env:
FLUTTER_VERSION: ${{ needs.setup.outputs.flutter_version }}
run: ./tool/build-app.sh linux/arm64 --build-number="${{ needs.setup.outputs.build_number }}"
- uses: actions/upload-artifact@v3
with:
name: Linux arm64
path: packages/app/build/linux/arm64/release/bundle/*
if-no-files-found: error

Loading…
Cancel
Save