Skip to content

Commit

Permalink
format Earthfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ciffelia committed Oct 2, 2023
1 parent 21cc8bb commit daf4024
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ generate:
apt-get install -y clang llvm libbpf-dev && \
rm -rf /var/lib/apt/lists/*

RUN ln -s /usr/include/*/asm /usr/include/asm
RUN ln -s /usr/include/*/asm /usr/include/asm

COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \
go generate main.go
--mount=type=cache,target=/go/pkg/mod \
go generate main.go

SAVE ARTIFACT ./bpf_* AS LOCAL .

build:
COPY . .
COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \
go build
--mount=type=cache,target=/go/pkg/mod \
go build

SAVE ARTIFACT ./tsblock AS LOCAL .

0 comments on commit daf4024

Please sign in to comment.