This commit is contained in:
@@ -19,17 +19,38 @@ jobs:
|
|||||||
${{ runner.os }}-buildx-
|
${{ runner.os }}-buildx-
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
run: |
|
uses: docker/setup-qemu-action@v3
|
||||||
sudo apt-get update -y
|
|
||||||
sudo apt install -y qemu-user-static
|
|
||||||
docker run --privileged --rm tonistiigi/binfmt --install all
|
|
||||||
|
|
||||||
- name: Build app
|
- name: Set up Docker Buildx
|
||||||
run: |
|
uses: docker/setup-buildx-action@v3
|
||||||
docker run --rm --platform linux/amd64 -v ${{ gitea.workspace }}:/app -w /app ghcr.io/cirruslabs/flutter:3.38.9 bash -c "apt update -y && apt install -y ninja-build cmake clang libgtk-3-dev pkg-config && flutter doctor -v && flutter pub get && flutter build linux --release"
|
|
||||||
|
- uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: false
|
||||||
|
tags: phanipavank/prodBuilder:latest
|
||||||
|
platforms: linux/arm64, linux/amd64
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
outputs: type=local,dest=build/linux/*/release/bundle/prod
|
||||||
|
build-args: |
|
||||||
|
TARGETARCH=${{matrix.arch}}
|
||||||
|
|
||||||
|
# - name: Setup QEMU
|
||||||
|
# run: |
|
||||||
|
# sudo apt-get update -y
|
||||||
|
# sudo apt install -y qemu-user-static
|
||||||
|
# docker run --privileged --rm tonistiigi/binfmt --install all
|
||||||
|
|
||||||
|
# - name: Build app
|
||||||
|
# run: |
|
||||||
|
# docker run --rm --platform linux/amd64 -v ${{ gitea.workspace }}:/app -w /app ghcr.io/cirruslabs/flutter:3.38.9 bash -c "apt update -y && apt install -y ninja-build cmake clang libgtk-3-dev pkg-config && flutter doctor -v && flutter pub get && flutter build linux --release"
|
||||||
|
|
||||||
|
- name: ls everything
|
||||||
|
run: ls -R
|
||||||
|
|
||||||
- name: Save Artifacts
|
- name: Save Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: PROD
|
name: PROD
|
||||||
path: build/linux/*/release/bundle/prod
|
path: ./prod
|
||||||
|
|||||||
Reference in New Issue
Block a user