Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsdeppe committed Jun 4, 2024
1 parent 217322d commit 17c6724
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions .github/workflows/Tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1153,34 +1153,34 @@ ${{ matrix.build_type }}-pch-${{ matrix.use_pch || 'ON' }}"
# Build static executables in a Docker container with an older version
# 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: 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: >
for i in CharacteristicExtract ReduceCceWorldtube; do
docker cp static-execs:/work/spectre/build/bin/$i ./;
done
# - 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: 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: >
# for i in CharacteristicExtract ReduceCceWorldtube; do
# docker cp static-execs:/work/spectre/build/bin/$i ./;
# done

tar cJf CceExecutables.tar.xz CharacteristicExtract ReduceCceWorldtube
# tar cJf CceExecutables.tar.xz CharacteristicExtract ReduceCceWorldtube
- name: Create release on GitHub
uses: softprops/action-gh-release@v2
with:
Expand All @@ -1189,10 +1189,9 @@ ${{ matrix.build_type }}-pch-${{ matrix.use_pch || 'ON' }}"
name: Release ${{ env.RELEASE_VERSION }}
body_path: >-
${{ steps.release-notes.outputs.download-path }}/release_notes.md
fail_on_unmatched_files: true
make_latest: true
files: |
CceExecutables.tar.xz
# files: |
# CceExecutables.tar.xz
# Publish the Zenodo record. Once published, the record can't be deleted
# anymore and editing is limited.
- name: Publish to Zenodo
Expand Down

0 comments on commit 17c6724

Please sign in to comment.