Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
shinchiro committed Sep 25, 2023
1 parent f5a6f87 commit a8de094
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/mpv_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
strategy:
fail-fast: false
matrix:
bit: [i686, x86_64, x86_64_v3]
bit: [x86_64]
env:
BIT: ${{ matrix.bit }}
container:
Expand Down Expand Up @@ -84,6 +84,7 @@ jobs:
${{ secrets.CACHE_VERSION }}-repository
- name: Loading ${{ matrix.bit }} toolchain cache
if: false
uses: actions/cache/restore@main
with:
path: |
Expand All @@ -102,7 +103,10 @@ jobs:
if [[ $BIT == x86_64_v3 ]]; then echo "x86_64_v3_ARCH=-DGCC_ARCH=x86-64-v3" >> $GITHUB_ENV; fi
cmake -DTARGET_ARCH=${{ env.arch }}-w64-mingw32 -DCOMPILER_TOOLCHAIN=clang ${{ env.x86_64_v3_ARCH }} -DALWAYS_REMOVE_BUILDFILES=ON -DCMAKE_INSTALL_PREFIX=$PWD/clang_root -DMINGW_INSTALL_PREFIX=$PWD/build_$BIT/$BIT-w64-mingw32 -DSINGLE_SOURCE_LOCATION=$PWD/src_packages -DRUSTUP_LOCATION=$PWD/clang_root/install_rustup -G Ninja -B build_$BIT -S $PWD
ninja -C build_$BIT rebuild_cache
ninja -C build_$BIT llvm-download
ninja -C build_$BIT llvm-clang
ninja -C build_$BIT download || true
ninja -C build_$BIT clean || true
- name: Building mpv
id: build_mpv_step
Expand Down Expand Up @@ -156,35 +160,37 @@ jobs:
- name: Saving clang sysroot cache
uses: actions/cache/save@main
if: ${{ always() && matrix.bit == 'x86_64' }}
if: false
with:
path: |
clang_root
key: ${{ secrets.CACHE_VERSION }}-clang_root-${{ github.run_id }}

- name: Saving repository cache
uses: actions/cache/save@main
if: ${{ always() && matrix.bit == 'x86_64' }}
if: false
with:
path: src_packages
key: ${{ secrets.CACHE_VERSION }}-repository-${{ github.run_id }}

- name: Saving ${{ matrix.bit }} toolchain cache
uses: actions/cache/save@main
if: always()
if: false
with:
path: |
build_${{ matrix.bit }}
key: ${{ secrets.CACHE_VERSION }}-clang-${{ matrix.bit }}_toolchain-${{ github.run_id }}

- name: Saving release_${{ matrix.bit }} cache
if: false
uses: actions/cache/save@main
with:
path: release_${{ matrix.bit }}
key: ${{ secrets.CACHE_VERSION }}-release_${{ matrix.bit }}-${{ github.run_id }}

release:
name: Upload releases
if: false
runs-on: ubuntu-latest
needs: build_mpv
env:
Expand Down Expand Up @@ -302,6 +308,7 @@ jobs:
name: Run mpv_gcc
runs-on: ubuntu-latest
needs: build_mpv
if: false
env:
GH_TOKEN: ${{ github.token }}
steps:
Expand All @@ -322,7 +329,7 @@ jobs:
name: Gist
runs-on: ubuntu-latest
needs: build_mpv
if: ${{ always() }}
if: false
env:
GH_TOKEN: ${{ secrets.GIST_TOKEN }}
RUN_ID: ${{ github.run_id }}
Expand Down

0 comments on commit a8de094

Please sign in to comment.