can't get variables to work

This commit is contained in:
pf 2023-03-28 21:06:01 +01:00
parent e8ff95f5c6
commit 5eef96a43e

View File

@ -17,13 +17,6 @@ jobs:
ubuntu-latest-gcc-default-cmake-3-8-ffmpeg5: ubuntu-latest-gcc-default-cmake-3-8-ffmpeg5:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
env:
ffmpeg_tar: n5.1.3.tar.gz
ffmpeg_url: https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n5.1.3.tar.gz
ffmpeg_src: FFmpeg-n5.1.3
ffmpeg_install: /home/runner/ffmpeg-n5.1.3_installation
ffmpeg_key: ffmpeg-n5.1.3_try4
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -50,16 +43,16 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
id: cache-ffmpeg5 id: cache-ffmpeg5
with: with:
path: ${{ env.ffmpeg_install }} path: /home/runner/ffmpeg-n5.1.3_installation
key: ${{ env.ffmpeg_key }} key: ffmpeg-n5.1.3_try4
- name: Build FFmpeg 5 - name: Build FFmpeg 5
if: steps.cache-ffmpeg5.outputs.cache-hit != 'true' if: steps.cache-ffmpeg5.outputs.cache-hit != 'true'
run: | run: |
wget ${{ env.ffmpeg_url }} wget https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n5.1.3.tar.gz
tar -xf ${{ env.ffmpeg_tar }} tar -xf n5.1.3.tar.gz
cd ${{ env.ffmpeg_src }} cd FFmpeg-n5.1.3
./configure --prefix=${{ env.ffmpeg_install }} --disable-doc --disable-programs ./configure --prefix=/home/runner/ffmpeg-n5.1.3_installation --disable-doc --disable-programs
make -j4 make -j4
make install make install
cd .. cd ..
@ -68,7 +61,7 @@ jobs:
run: | run: |
mkdir build mkdir build
cd build cd build
~/cmake-3.8.0-Linux-x86_64/bin/cmake -DCMAKE_PREFIX_PATH=${{ env.ffmpeg_install }} .. ~/cmake-3.8.0-Linux-x86_64/bin/cmake -DCMAKE_PREFIX_PATH=/home/runner/ffmpeg-n5.1.3_installation ..
- name: Build just tests - name: Build just tests
run: | run: |
@ -114,14 +107,7 @@ jobs:
run: build_blas_bindings/dtest --runall -q run: build_blas_bindings/dtest --runall -q
ubuntu-18_04-gcc-7: ubuntu-18_04-gcc-7:
runs-on: 'ubuntu-18.04' runs-on: 'ubuntu-18.04'
env:
ffmpeg_tar: n3.2.18.tar.gz
ffmpeg_url: https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n3.2.18.tar.gz
ffmpeg_src: FFmpeg-n3.2.18
ffmpeg_install: /home/runner/ffmpeg-n3.2.18_installation
ffmpeg_key: ffmpeg-n3.2.18_try1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -135,22 +121,22 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
id: cache-ffmpeg3.2 id: cache-ffmpeg3.2
with: with:
path: ${{ env.ffmpeg_install }} path: /home/runner/ffmpeg-n3.2.18_installation
key: ${{ env.ffmpeg_key }} key: ffmpeg-n3.2.18_try1
- name: Build FFmpeg 3.2 - name: Build FFmpeg 3.2
if: steps.cache-ffmpeg3.2.outputs.cache-hit != 'true' if: steps.cache-ffmpeg3.2.outputs.cache-hit != 'true'
run: | run: |
wget ${{ env.ffmpeg_url }} wget https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n3.2.18.tar.gz
tar -xf ${{ env.ffmpeg_tar }} tar -xf n3.2.18.tar.gz
cd ${{ env.ffmpeg_src }} cd FFmpeg-n3.2.18
./configure --prefix=${{ env.ffmpeg_install }} --disable-doc --disable-programs ./configure --prefix=/home/runner/ffmpeg-n3.2.18_installation --disable-doc --disable-programs
make -j4 make -j4
make install make install
cd .. cd ..
- name: Configure - name: Configure
run: cmake ${{ github.workspace }}/dlib/test -B build -DCMAKE_PREFIX_PATH=${{ env.ffmpeg_install }} run: cmake ${{ github.workspace }}/dlib/test -B build -DCMAKE_PREFIX_PATH=/home/runner/ffmpeg-n3.2.18_installation
- name: Build just tests - name: Build just tests
run: cmake --build build --config Release --target dtest --parallel 4 run: cmake --build build --config Release --target dtest --parallel 4
@ -163,7 +149,7 @@ jobs:
# Test cmake scrips can build standalone dlib as a shared library # Test cmake scrips can build standalone dlib as a shared library
- name: Configure dlib as shared library - name: Configure dlib as shared library
run: cmake ${{ github.workspace }}/dlib -B build_dlib_shared -DBUILD_SHARED_LIBS=1 -DCMAKE_PREFIX_PATH=${{ env.ffmpeg_install }} run: cmake ${{ github.workspace }}/dlib -B build_dlib_shared -DBUILD_SHARED_LIBS=1 -DCMAKE_PREFIX_PATH=/home/runner/ffmpeg-n3.2.18_installation
- name: Build dlib as shared library - name: Build dlib as shared library
run: cmake --build build_dlib_shared --parallel 4 run: cmake --build build_dlib_shared --parallel 4