Skip to content

Commit

Permalink
Improve CI Earthly targets
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Jul 19, 2024
1 parent 4c2dc14 commit fc42617
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/kext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 17 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit fc42617

Please sign in to comment.