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 5f1a18b
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions .github/workflows/DeployStaticExecutables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,58 @@ jobs:
run: >
docker run --name static-execs
sxs-collaboration/spectre:deploy_static_execs_and_libs
- name: Copy static executables and libraries from Docker container
- name: Install python dependencies
run: >
pip3 install numpy h5py
- name: Create CCE executables release asset
# 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
cp ./tests/InputFiles/Cce/CharacteristicExtract.yaml
./CceExecutables/CharacteristicExtract.yaml
for i in CharacteristicExtract ReduceCceWorldtube; do
docker cp static-execs:/work/spectre/build/bin/$i ./CceExecutables;
done
tar cJf CceExecutables.tar.xz CceExecutables
# Download extra data to include for CCE
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"
# Test CCE works as expected.
sed -i 's/CceR0257/BondiSachsCceR0200/g'
./CceExecutables/CharacteristicExtract.yaml
sed -i 's/H5IsBondiData: False/H5IsBondiData: True/g'
./CceExecutables/CharacteristicExtract.yaml
echo "${{ env.RELEASE_TAG_NAME }}"
./CceExecutables/CharacteristicExtract
--input-file ./CceExecutables/CharacteristicExtract.yaml
python ./CheckCceOutput.py
rm CharacteristicExtractReduction.h5
# Copy CCE data into directory
mv BondiSachsCceR0200.h5 ./CceExecutables/
mv CharacteristicExtractReduction_Expected.h5 ./CceExecutables/
mv CheckCceOutput.py ./CceExecutables/
tar cJf CceExecutables.tar.xz CceExecutables
- name: Create release on GitHub
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 5f1a18b

Please sign in to comment.