github: Update use of actions/checkout and actions/upload-artifact from v2 to v3
The use of actions/download-artifact was already at v3. This should avoid warnings about use of Node 12 which now is deprecated.
This commit is contained in:
1 parent
7c66ebe60d
commit
53e803c424
1 file changed
+13
-13
+13
-13
@@ -26,7 +26,7 @@ jobs:
|
|||||||
echo MINGW_W64_VERSION=$(git ls-remote https://github.com/mingw-w64/mingw-w64.git | grep 'refs/heads/master$' | awk '{print $1}') >> versions
|
echo MINGW_W64_VERSION=$(git ls-remote https://github.com/mingw-w64/mingw-w64.git | grep 'refs/heads/master$' | awk '{print $1}') >> versions
|
||||||
echo PYTHON_VERSION_MINGW=$(git ls-remote https://github.com/msys2-contrib/cpython-mingw.git | grep 'refs/heads/mingw-v3.10.5$' | awk '{print $1}') >> versions
|
echo PYTHON_VERSION_MINGW=$(git ls-remote https://github.com/msys2-contrib/cpython-mingw.git | grep 'refs/heads/mingw-v3.10.5$' | awk '{print $1}') >> versions
|
||||||
cat versions
|
cat versions
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: versions
|
name: versions
|
||||||
path: |
|
path: |
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
needs: [get-versions]
|
needs: [get-versions]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
if: github.event_name == 'schedule'
|
if: github.event_name == 'schedule'
|
||||||
with:
|
with:
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb $CFGUARD_PARAMS
|
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb $CFGUARD_PARAMS
|
||||||
cd install
|
cd install
|
||||||
tar -Jcf ../llvm-mingw-linux.tar.xz llvm-mingw
|
tar -Jcf ../llvm-mingw-linux.tar.xz llvm-mingw
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux-toolchain
|
name: linux-toolchain
|
||||||
path: |
|
path: |
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
needs: [get-versions]
|
needs: [get-versions]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
if: github.event_name == 'schedule'
|
if: github.event_name == 'schedule'
|
||||||
with:
|
with:
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb --enable-asserts $CFGUARD_PARAMS
|
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb --enable-asserts $CFGUARD_PARAMS
|
||||||
cd install
|
cd install
|
||||||
tar -Jcf ../llvm-mingw-linux.tar.xz llvm-mingw
|
tar -Jcf ../llvm-mingw-linux.tar.xz llvm-mingw
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux-asserts-toolchain
|
name: linux-asserts-toolchain
|
||||||
path: |
|
path: |
|
||||||
@@ -125,7 +125,7 @@ jobs:
|
|||||||
cat versions >> $GITHUB_ENV
|
cat versions >> $GITHUB_ENV
|
||||||
echo Enabling CFGuard when building with latest llvm and mingw-w64
|
echo Enabling CFGuard when building with latest llvm and mingw-w64
|
||||||
echo CFGUARD_PARAMS=--enable-cfguard >> $GITHUB_ENV
|
echo CFGUARD_PARAMS=--enable-cfguard >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
brew install ninja
|
brew install ninja
|
||||||
@@ -137,7 +137,7 @@ jobs:
|
|||||||
MACOS_REDIST=1 LLVM_CMAKEFLAGS="-DLLVM_ENABLE_ZSTD=OFF" ./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb $CFGUARD_PARAMS
|
MACOS_REDIST=1 LLVM_CMAKEFLAGS="-DLLVM_ENABLE_ZSTD=OFF" ./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb $CFGUARD_PARAMS
|
||||||
cd install
|
cd install
|
||||||
tar -Jcf ../llvm-mingw-macos.tar.xz llvm-mingw
|
tar -Jcf ../llvm-mingw-macos.tar.xz llvm-mingw
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: macos-toolchain
|
name: macos-toolchain
|
||||||
path: |
|
path: |
|
||||||
@@ -190,7 +190,7 @@ jobs:
|
|||||||
cat versions >> $GITHUB_ENV
|
cat versions >> $GITHUB_ENV
|
||||||
echo Enabling CFGuard when building with latest llvm and mingw-w64
|
echo Enabling CFGuard when building with latest llvm and mingw-w64
|
||||||
echo CFGUARD_PARAMS=--enable-cfguard >> $GITHUB_ENV
|
echo CFGUARD_PARAMS=--enable-cfguard >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb $CFGUARD_PARAMS
|
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb $CFGUARD_PARAMS
|
||||||
@@ -228,14 +228,14 @@ jobs:
|
|||||||
echo Building llvm-project $LLVM_VERSION mingw-w64 $MINGW_W64_VERSION cpython-mingw $PYTHON_VERSION_MINGW
|
echo Building llvm-project $LLVM_VERSION mingw-w64 $MINGW_W64_VERSION cpython-mingw $PYTHON_VERSION_MINGW
|
||||||
cat /opt/llvm-mingw/versions >> $GITHUB_ENV
|
cat /opt/llvm-mingw/versions >> $GITHUB_ENV
|
||||||
echo LLDB_MI_PARAMS=--disable-lldb-mi >> $GITHUB_ENV
|
echo LLDB_MI_PARAMS=--disable-lldb-mi >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install autoconf-archive ninja-build
|
sudo apt-get update && sudo apt-get install autoconf-archive ninja-build
|
||||||
./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw-${{matrix.arch}} ${{matrix.arch}} --with-python $LLDB_MI_PARAMS
|
./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw-${{matrix.arch}} ${{matrix.arch}} --with-python $LLDB_MI_PARAMS
|
||||||
cd install
|
cd install
|
||||||
zip -9rq ../llvm-mingw-${{matrix.arch}}.zip llvm-mingw-${{matrix.arch}}
|
zip -9rq ../llvm-mingw-${{matrix.arch}}.zip llvm-mingw-${{matrix.arch}}
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: windows-${{matrix.arch}}-toolchain
|
name: windows-${{matrix.arch}}-toolchain
|
||||||
path: |
|
path: |
|
||||||
@@ -272,7 +272,7 @@ jobs:
|
|||||||
rm llvm-mingw-*.zip
|
rm llvm-mingw-*.zip
|
||||||
mv llvm-mingw-* /llvm-mingw
|
mv llvm-mingw-* /llvm-mingw
|
||||||
echo /llvm-mingw/bin >> $GITHUB_PATH
|
echo /llvm-mingw/bin >> $GITHUB_PATH
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
./run-tests.sh /llvm-mingw
|
./run-tests.sh /llvm-mingw
|
||||||
@@ -305,7 +305,7 @@ jobs:
|
|||||||
sudo mv llvm-mingw /opt/llvm-mingw
|
sudo mv llvm-mingw /opt/llvm-mingw
|
||||||
echo /opt/llvm-mingw/bin >> $GITHUB_PATH
|
echo /opt/llvm-mingw/bin >> $GITHUB_PATH
|
||||||
- name: Checkout ffmpeg
|
- name: Checkout ffmpeg
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: ffmpeg/ffmpeg
|
repository: ffmpeg/ffmpeg
|
||||||
path: ffmpeg
|
path: ffmpeg
|
||||||
@@ -354,7 +354,7 @@ jobs:
|
|||||||
mv llvm-mingw-* /llvm-mingw
|
mv llvm-mingw-* /llvm-mingw
|
||||||
echo /llvm-mingw/bin >> $GITHUB_PATH
|
echo /llvm-mingw/bin >> $GITHUB_PATH
|
||||||
- name: Checkout ffmpeg
|
- name: Checkout ffmpeg
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: ffmpeg/ffmpeg
|
repository: ffmpeg/ffmpeg
|
||||||
path: ffmpeg
|
path: ffmpeg
|
||||||
|
|||||||
Reference in new issue
Block a user