Improve CI Earthly targets

This commit is contained in:
Daniel 2024-07-19 15:40:31 +02:00
parent 4c2dc14474
commit fc4261706c
4 changed files with 20 additions and 8 deletions

View file

@ -56,4 +56,4 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build angular projects
run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +angular-release
run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +angular-ci

View file

@ -33,4 +33,4 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Kernel Extension
run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +kext-build
run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +kext-ci

View file

@ -33,4 +33,4 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build tauri project
run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +tauri-release
run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +tauri-ci

View file

@ -70,6 +70,23 @@ build:
# ./dist/all/assets.zip
BUILD +assets
go-ci:
BUILD +go-build --GOOS="linux" --GOARCH="amd64"
BUILD +go-build --GOOS="linux" --GOARCH="arm64"
BUILD +go-build --GOOS="windows" --GOARCH="amd64"
BUILD +go-build --GOOS="windows" --GOARCH="arm64"
BUILD +go-test
angular-ci:
BUILD +angular-release
tauri-ci:
BUILD +tauri-build --target="x86_64-unknown-linux-gnu"
BUILD +tauri-windows-release-bundle
kext-ci:
BUILD +kext-build
release:
LOCALLY
@ -269,11 +286,6 @@ go-build-utils:
BUILD +go-build --CMDS="" --GOARCH=amd64 --GOOS=linux
BUILD +go-build --CMDS="" --GOARCH=amd64 --GOOS=windows
# All targets that should run in CI for go.
go-ci:
BUILD +go-release
BUILD +go-test
# Prepares the angular project by installing dependencies
angular-deps:
FROM ${node_builder_image}