Skip to content

Commit

Permalink
test null hypothesis
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Dec 25, 2024
1 parent 383ed61 commit a8ebc03
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 52 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,29 +136,6 @@ jobs:
restore-keys: |
linux-gcc-${{ inputs.gcc-ver }}-${{ inputs.cache-id }}
linux-gcc-${{ inputs.gcc-ver }}
- name: Get structures sha
if: inputs.platform-files
id: get-structures-sha
run: |
cd library/xml
echo xml_sha=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
- name: Header cache prep
if: inputs.platform-files
run: |
tar czf uncached_files.tgz library/include/df
rm -rf library/include/df
- name: Header cache
if: inputs.platform-files
uses: actions/cache@v4
with:
path: library/include/df
key: df-headers-${{ steps.get-structures-sha.outputs.xml_sha }}
- name: Header cache post
if: inputs.platform-files
run: |
tar xzf uncached_files.tgz
find library/xml -type f | xargs touch -d '10 minutes ago'
find library/include/df -name 'codegen.out.xml' -exec touch '{}' \;
- name: Configure DFHack
env:
CC: gcc-${{ inputs.gcc-ver }}
Expand Down Expand Up @@ -192,9 +169,6 @@ jobs:
- name: Run cpp tests
if: inputs.platform-files
run: ninja -C build test
- name: Scrub header cache
if: inputs.platform-files
run: tar tzf uncached_files.tgz | grep -ve '/$' | xargs rm
- name: Finalize ccache
if: inputs.platform-files
run: |
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,38 +117,12 @@ jobs:
restore-keys: |
win-msvc-${{ inputs.cache-id }}
win-msvc
- name: Get structures sha
if: inputs.platform-files
id: get-structures-sha
run: |
cd library/xml
echo xml_sha=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
- name: Header cache prep
if: inputs.platform-files
run: |
tar czf uncached_files.tgz library/include/df
rm -rf library/include/df
- name: Header cache
if: inputs.platform-files
uses: actions/cache@v4
with:
path: library/include/df
key: df-headers-${{ steps.get-structures-sha.outputs.xml_sha }}
- name: Header cache post
if: inputs.platform-files
run: |
tar xzf uncached_files.tgz
find library/xml -type f | xargs touch -d '10 minutes ago'
find library/include/df -name 'codegen.out.xml' -exec touch '{}' \;
- name: Cross-compile
env:
CMAKE_EXTRA_ARGS: -DBUILD_PDBS:BOOL=${{ inputs.cache-id == 'release' }} -DDFHACK_RUN_URL='https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' -DBUILD_LIBRARY=${{ inputs.platform-files }} -DBUILD_PLUGINS:BOOL=${{ inputs.platform-files && inputs.plugins }} -DBUILD_STONESENSE:BOOL=${{ inputs.stonesense }} -DBUILD_DOCS:BOOL=${{ inputs.docs }} -DBUILD_DOCS_NO_HTML:BOOL=${{ !inputs.html }} -DINSTALL_DATA_FILES:BOOL=${{ inputs.common-files }} -DINSTALL_SCRIPTS:BOOL=${{ inputs.common-files }} -DBUILD_DFLAUNCH:BOOL=${{ inputs.launchdf }} -DBUILD_TESTS:BOOL=${{ inputs.tests }} -DBUILD_XMLDUMP:BOOL=${{ inputs.xml-dump-type-sizes }} ${{ inputs.xml-dump-type-sizes && '-DINSTALL_XMLDUMP:BOOL=1' || '' }}
run: |
cd build
bash -x build-win64-from-linux.sh
- name: Scrub header cache
if: inputs.platform-files
run: tar tzf uncached_files.tgz | grep -ve '/$' | xargs rm
- name: Finalize cache
run: |
cd build
Expand Down

0 comments on commit a8ebc03

Please sign in to comment.