gh-actions: replace SDE download script.
Of course right after I write a script to automate downloading the SDE
they change their web site around.
@@ -41,12 +41,17 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install APT Dependencies
- run: sudo add-apt-repository 'ppa:ubuntu-toolchain-r/test' && sudo apt-get update && sudo apt-get install -y ninja-build python3-lxml
+ run: sudo add-apt-repository 'ppa:ubuntu-toolchain-r/test' && sudo apt-get update && sudo apt-get install -y ninja-build
- name: Download SDE
- run: cd test && python3 download-sde.py sde.tar.bz2 && tar jxvf sde.tar.bz2
+ run: |
+ mkdir sde && \
+ curl -sL 'https://software.intel.com/content/www/us/en/develop/articles/pre-release-license-agreement-for-intel-software-development-emulator-accept-end-user-license-agreement-and-download.html' \
+ | grep -oP 'https?://software.intel.com/content/dam/develop/external/us/en/protected/sde-external-([0-9\.\-]+)-lin.tar.bz2' \
+ | xargs curl -sL \
+ | tar --strip-components 1 -jxvC sde
- name: Configure
run: cmake test -G "Ninja" -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++" -DCMAKE_BUILD_TYPE="Coverage" -DCMAKE_{C,CXX}_FLAGS="-march=${{ matrix.arch }} -Wall -Wextra -Werror" -DALWAYS_BUILD_NATIVE_TESTS=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
- name: Build
run: cmake --build .
- name: Test
- run: test/sde-*/sde64 -- ./run-tests
+ run: sde/sde64 -- ./run-tests
