Skip to content

Commit

Permalink
fixup: deleteme
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsdeppe committed Jun 4, 2024
1 parent b2e723a commit 9ea8238
Showing 1 changed file with 46 additions and 19 deletions.
65 changes: 46 additions & 19 deletions .github/workflows/DeployStaticExecutables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,59 @@ jobs:
# of Ubuntu so that the glibc is compatible with most Linux distros.
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push deploy container
uses: docker/build-push-action@v5
with:
push: false
context: .
file: "./containers/Dockerfile.buildenv"
target: deploy_static_execs_and_libs
tags: sxs-collaboration/spectre:deploy_static_execs_and_libs
platforms: linux/amd64
load: true
build-args:
UBUNTU_VERSION=18.04
- name: Run Docker container
run: >
docker run --name static-execs
sxs-collaboration/spectre:deploy_static_execs_and_libs
# - name: Build and push deploy container
# uses: docker/build-push-action@v5
# with:
# push: false
# context: .
# file: "./containers/Dockerfile.buildenv"
# target: deploy_static_execs_and_libs
# tags: sxs-collaboration/spectre:deploy_static_execs_and_libs
# platforms: linux/amd64
# load: true
# build-args:
# UBUNTU_VERSION=18.04
# - name: Run Docker container
# run: >
# docker run --name static-execs
# sxs-collaboration/spectre:deploy_static_execs_and_libs
- name: Copy static executables and libraries from Docker container
# Note: We use xz compression since it's much better than gzip, even
# though it's a decent bit slower. Specifically, xz is two thirds the
# size of gzip.
run: >
mkdir CceExecutables
for i in CharacteristicExtract ReduceCceWorldtube; do
docker cp static-execs:/work/spectre/build/bin/$i ./CceExecutables;
done
cp ./tests/InputFiles/Cce/CharacteristicExtract.yaml ./CceExecutables
# for i in CharacteristicExtract ReduceCceWorldtube; do
# docker cp static-execs:/work/spectre/build/bin/$i ./CceExecutables;
# done
# Do a test CCE run
cd CceExecutables
wget -O BondiSachsCceR0200.h5
"https://drive.google.com/uc?export=download&id=1CmgLLfuLod8stc13EtmjHUvBoIgSVD-Y"
wget -O CharacteristicExtractReduction_Expected.h5
"https://drive.google.com/uc?export=download&id=1uaESVdylNmcHwpZwogX4TVrNs8JbWNF1"
wget -O CheckCceOutput.py
"https://drive.google.com/uc?export=download&id=1rfzjtXtrP9pQE2az3935uN0z_5aSF1hy"
sed -i 's/CceR0257/BondiSachsCceR0200/g' CharacteristicExtract.yaml
sed -i 's/H5IsBondiData: False/H5IsBondiData: True/g'
CharacteristicExtract.yaml
# ./CharacteristicExtract --input-file CharacteristicExtract.yaml
# python ./CheckCceOutput.py
# rm CharacteristicExtractReduction.h5
cd ..
tar cJf CceExecutables.tar.xz CceExecutables
Expand Down

0 comments on commit 9ea8238

Please sign in to comment.