1616 required : true
1717jobs :
1818 build :
19- runs-on : ubuntu-22 .04
19+ runs-on : ubuntu-24 .04
2020 steps :
2121 - uses : actions/checkout@v4
2222 with :
@@ -37,18 +37,18 @@ jobs:
3737 Packages/com.github.homuler.mediapipe/Runtime/Scripts/Protobuf/**/*.cs
3838 Packages/com.github.homuler.mediapipe/PackageResources/MediaPipe/*.bytes
3939 Packages/com.github.homuler.mediapipe/PackageResources/MediaPipe/*.txt
40- key : libs-ubuntu-22 .04-v1-${{ hashFiles('cache_key.txt') }}
40+ key : libs-ubuntu-24 .04-v1-${{ hashFiles('cache_key.txt') }}
4141
4242 # Setup build tools
4343 - name : Mount bazel cache
4444 if : steps.cache-libs.outputs.cache-hit != 'true'
4545 uses : actions/cache/restore@v4
4646 with :
4747 path : " ~/.cache/bazel"
48- key : bazel-ubuntu-22 .04-v1-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('cache_key.txt') }}
48+ key : bazel-ubuntu-24 .04-v1-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('cache_key.txt') }}
4949 restore-keys : |
50- bazel-ubuntu-22 .04-v1-${{ hashFiles('WORKSPACE') }}-
51- bazel-ubuntu-22 .04-v1-
50+ bazel-ubuntu-24 .04-v1-${{ hashFiles('WORKSPACE') }}-
51+ bazel-ubuntu-24 .04-v1-
5252
5353 - name : Remove cache_key.txt
5454 run : |
@@ -63,21 +63,10 @@ jobs:
6363 - name : Install dependencies
6464 if : steps.cache-libs.outputs.cache-hit != 'true'
6565 run : |
66- # install GCC/G++ 11
67- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
68- sudo apt-get update
69- sudo apt-get install -y --no-install-recommends gcc-11 g++-11
70- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11
71-
72- # install Clang 16
73- wget https://apt.llvm.org/llvm.sh
74- chmod +x llvm.sh
75- sudo ./llvm.sh 16
76- sudo ln -sf /usr/bin/clang-16 /usr/bin/clang
77- sudo ln -sf /usr/bin/clang++-16 /usr/bin/clang++
78- sudo ln -sf /usr/bin/clang-format-16 /usr/bin/clang-format
79-
8066 # install NuGet
67+ sudo apt update
68+ sudo apt-get install -y --no-install-recommends mono-complete
69+
8170 sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
8271 bash -c 'echo -e "#!/bin/bash\nmono /usr/local/bin/nuget.exe \$@" | sudo tee -a /usr/local/bin/nuget'
8372 sudo chmod +x /usr/local/bin/nuget
10695 uses : actions/cache/save@v4
10796 with :
10897 path : ~/.cache/bazel
109- key : bazel-ubuntu-22 .04-v1-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('cache_key.txt') }}
98+ key : bazel-ubuntu-24 .04-v1-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('cache_key.txt') }}
11099
111100 test :
112101 runs-on : ${{ matrix.os }}
@@ -115,7 +104,7 @@ jobs:
115104 fail-fast : false
116105 matrix :
117106 os :
118- - ubuntu-22 .04
107+ - ubuntu-24 .04
119108 unityVersion :
120109 - 2022.3.34f1
121110 - 2021.3.33f1
0 commit comments