Skip to content

Commit

Permalink
get seq source into repo
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Sep 29, 2023
1 parent 03405c5 commit db56ad9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,18 @@ ARCH=${ARCH:-linux}
PUSH=${PUSH:-false}
TAG=${TAG:-latest}
REGISTRY=${REGISTRY:-ghcr.io}
if [[ -z ${REPOSITORY} ]] ; then
# For local builds, infer the registry from git remote (assumes ghcr)
REPOSITORY=$(git remote -v | sed "s/.*@github.com:\(.*\)\.git.*/ghcr.io\/\1/" | tail -1)
echo "inferred registry ${REPOSITORY}"
fi

set -xe

NEWCACHE=${CACHE}-new

if docker -v | grep podman ; then
# podman command line parameters (just use local cache)
cachefrom=""
cacheto=""
else
# setup a buildx driver for multi-arch / remote cached builds
docker buildx create --driver docker-container --use
# docker command line parameters
cachefrom=--cache-from=type=local,src=${CACHE}
cacheto=--cache-to=type=local,dest=${NEWCACHE},mode=max
fi
# setup a buildx driver for multi-arch / remote cached builds
docker buildx create --driver docker-container --use

# docker command line parameters
cachefrom=--cache-from=type=local,src=${CACHE}
cacheto=--cache-to=type=local,dest=${NEWCACHE},mode=max

set -e

do_build() {
ARCHITECTURE=$1
Expand Down Expand Up @@ -79,6 +70,6 @@ do_build() {
# as every layer will get uploaded to the cache even if it just came out of the
# cache.

do_build ${ARCH} developer
do_build ${ARCH} runtime
do_build ${ARCH} developer ${cachefrom}
do_build ${ARCH} runtime ${cachefrom} ${cacheto}

8 changes: 4 additions & 4 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export TMPDIR=/tmp
set -xe

if [[ -z ${TARGET_ARCHITECTURE} || ${TARGET_ARCHITECTURE}=="linux" ]]; then
podman buildx build --target developer --build-arg TARGETARCH=amd64 --build-arg TARGET_ARCHITECTURE=linux -t epics-base-linux-developer .
podman buildx build --target runtime --build-arg TARGETARCH=amd64 --build-arg TARGET_ARCHITECTURE=linux -t epics-base-linux-runtime .
podman buildx build --net host --target developer --build-arg TARGETARCH=amd64 --build-arg TARGET_ARCHITECTURE=linux -t epics-base-linux-developer:local .
podman buildx build --net host --target runtime --build-arg TARGETARCH=amd64 --build-arg TARGET_ARCHITECTURE=linux -t epics-base-linux-runtime:local .
fi

if [[ ${TARGET_ARCHITECTURE}=="rtems" ]]; then
podman buildx build --target developer --build-arg TARGETARCH=amd64 --build-arg TARGET_ARCHITECTURE=rtems -t epics-base-rtems-developer .
podman buildx build --target runtime --build-arg TARGETARCH=amd64 --build-arg TARGET_ARCHITECTURE=rtems -t epics-base-rtems-runtime .
podman buildx build --net host --target developer --build-arg TARGETARCH=amd64 --build-arg TARGET_ARCHITECTURE=rtems -t epics-base-rtems-developer:local .
podman buildx build --net host --target runtime --build-arg TARGETARCH=amd64 --build-arg TARGET_ARCHITECTURE=rtems -t epics-base-rtems-runtime:local .
fi
9 changes: 9 additions & 0 deletions epics/support/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
TOPTARGETS := all clean

include configure/MODULES

$(TOPTARGETS): $(MODULES)
$(MODULES):
$(MAKE) -j $(nproc) -C $@ $(MAKECMDGOALS)

.PHONY: $(TOPTARGETS) $(MODULES)
Binary file added vendor_2_2_9.tar.gz
Binary file not shown.

0 comments on commit db56ad9

Please sign in to comment.