-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add space check * Replace docker build actions * Fix image name * Fix image build
- Loading branch information
1 parent
eeb37eb
commit 8a3ba64
Showing
2 changed files
with
18 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 | ||
|
@@ -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 | ||
|