Skip to content

Commit

Permalink
Upgrade CI/CD (#203)
Browse files Browse the repository at this point in the history
* Add space check

* Replace docker build actions

* Fix image name

* Fix image build
  • Loading branch information
drunkbatya authored Nov 9, 2023
1 parent eeb37eb commit 8a3ba64
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 25 deletions.
11 changes: 0 additions & 11 deletions .github/actions/docker/action.yml

This file was deleted.

32 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,33 @@ jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- name: Cleanup workspace
uses: AutoModality/action-clean@v1
- name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true

- uses: satackey/[email protected]
continue-on-error: true
with:
key: docker-cache-${{ hashFiles('docker/**') }}-{hash}
restore-keys: docker-cache-${{ hashFiles('docker/**') }}-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build docker image
uses: ./.github/actions/docker
- name: Build and push
uses: docker/build-push-action@v5
with:
push: false
context: docker
tags: qflipper-build:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build application in docker
run: docker build -t flipp ./docker/ && docker run --rm --privileged -v $(pwd):/project flipp /project/build_linux.sh
run: docker run --rm --privileged -v $(pwd):/project qflipper-build:latest /project/build_linux.sh

- name: Publish application
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: qFlipper-x86_64.AppImage
path: |
Expand All @@ -48,7 +52,7 @@ jobs:
MAC_OS_SIGNING_PASSWORD: ${{ secrets.MAC_OS_SIGNING_PASSWORD }}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
Expand All @@ -71,7 +75,7 @@ jobs:
SIGNING_TOOL: ${{ secrets.WIN_SIGNING_TOOL }}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
Expand Down

0 comments on commit 8a3ba64

Please sign in to comment.