Update checkout and upload-artifact actions to node16 (#1610)

* Updated checkout actions

* Updated upload-artifact actions

* Remove now unnecessary gcc-9 step
dev
tomangelo 2023-08-24 23:25:32 +02:00 committed by GitHub
parent 7d22b607cc
commit 909a2b2d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 14 deletions

View File

@ -13,13 +13,10 @@ jobs:
container: [''] container: ['']
fail-fast: false fail-fast: false
steps: steps:
- name: Switch to gcc-9
run: sudo apt install gcc-9 g++-9 && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9 && sudo update-alternatives --set gcc /usr/bin/gcc-9
if: matrix.host_os == 'ubuntu-18.04'
- name: Install Colobot dependencies - name: Install Colobot dependencies
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsndfile1-dev libvorbis-dev libogg-dev libpng-dev libglew-dev libopenal-dev libphysfs-dev gettext git po4a vorbis-tools librsvg2-bin xmlstarlet libglm-dev libmpg123-dev run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsndfile1-dev libvorbis-dev libogg-dev libpng-dev libglew-dev libopenal-dev libphysfs-dev gettext git po4a vorbis-tools librsvg2-bin xmlstarlet libglm-dev libmpg123-dev
if: matrix.container == '' if: matrix.container == ''
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Checkout the Google Test submodule - name: Checkout the Google Test submodule
run: git submodule update --init -- lib/googletest run: git submodule update --init -- lib/googletest
- name: Checkout the nlohmann json submodule - name: Checkout the nlohmann json submodule
@ -37,7 +34,7 @@ jobs:
run: patchelf --set-rpath '.' install/colobot run: patchelf --set-rpath '.' install/colobot
if: matrix.target_os == 'linux' if: matrix.target_os == 'linux'
- name: Upload build - name: Upload build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: ${{matrix.target_os}}-debug name: ${{matrix.target_os}}-debug
path: install path: install
@ -61,7 +58,7 @@ jobs:
cp -p Colobot-x86_64.AppImage appimage/colobot cp -p Colobot-x86_64.AppImage appimage/colobot
if: matrix.target_os == 'linux' if: matrix.target_os == 'linux'
- name: Upload AppImage - name: Upload AppImage
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: ${{matrix.target_os}}-debug-AppImage name: ${{matrix.target_os}}-debug-AppImage
path: build/appimage path: build/appimage
@ -72,7 +69,7 @@ jobs:
run: ./Colobot-UnitTests --gtest_output=xml:gtestresults.xml run: ./Colobot-UnitTests --gtest_output=xml:gtestresults.xml
if: matrix.target_os == 'linux' if: matrix.target_os == 'linux'
- name: Upload test results - name: Upload test results
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Test results (${{ matrix.target_os }}, ${{ matrix.host_os }}) name: Test results (${{ matrix.target_os }}, ${{ matrix.host_os }})
path: build/gtestresults.xml path: build/gtestresults.xml
@ -90,7 +87,7 @@ jobs:
- name: Install Colobot dependencies - name: Install Colobot dependencies
run: brew install cmake sdl2 sdl2_image sdl2_ttf glew physfs flac libsndfile libvorbis vorbis-tools gettext libicns librsvg wget xmlstarlet glm run: brew install cmake sdl2 sdl2_image sdl2_ttf glew physfs flac libsndfile libvorbis vorbis-tools gettext libicns librsvg wget xmlstarlet glm
if: matrix.container == '' if: matrix.container == ''
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Checkout the Google Test submodule - name: Checkout the Google Test submodule
run: git submodule update --init -- lib/googletest run: git submodule update --init -- lib/googletest
- name: Checkout the nlohmann json submodule - name: Checkout the nlohmann json submodule
@ -108,7 +105,7 @@ jobs:
run: ./Colobot-UnitTests --gtest_output=xml:gtestresults.xml run: ./Colobot-UnitTests --gtest_output=xml:gtestresults.xml
if: matrix.target_os == 'macos' if: matrix.target_os == 'macos'
- name: Upload test results - name: Upload test results
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Test results (${{ matrix.target_os }}, ${{ matrix.host_os }}) name: Test results (${{ matrix.target_os }}, ${{ matrix.host_os }})
path: build/gtestresults.xml path: build/gtestresults.xml
@ -123,7 +120,7 @@ jobs:
- arch: x86 - arch: x86
vcpkg_triplet: 'x86-windows-static' vcpkg_triplet: 'x86-windows-static'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Checkout the Google Test submodule - name: Checkout the Google Test submodule
run: git submodule update --init -- lib/googletest run: git submodule update --init -- lib/googletest
- name: Checkout the nlohmann json submodule - name: Checkout the nlohmann json submodule
@ -179,7 +176,7 @@ jobs:
- name: Install - name: Install
run: cmake --build --preset Windows-CI --target install run: cmake --build --preset Windows-CI --target install
- name: Upload build - name: Upload build
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: windows-msvc-debug-${{ matrix.arch }} name: windows-msvc-debug-${{ matrix.arch }}
path: install path: install
@ -187,7 +184,7 @@ jobs:
working-directory: build working-directory: build
run: ./Colobot-UnitTests --gtest_output=xml:gtestresults.xml run: ./Colobot-UnitTests --gtest_output=xml:gtestresults.xml
- name: Upload test results - name: Upload test results
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: 'Test results (windows, MSVC, ${{ matrix.arch }})' name: 'Test results (windows, MSVC, ${{ matrix.arch }})'
path: build/gtestresults.xml path: build/gtestresults.xml
@ -196,7 +193,7 @@ jobs:
steps: steps:
- name: Install Colobot dependencies - name: Install Colobot dependencies
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsndfile1-dev libvorbis-dev libogg-dev libpng-dev libglew-dev libopenal-dev libphysfs-dev gettext git po4a vorbis-tools librsvg2-bin xmlstarlet doxygen graphviz libglm-dev libmpg123-dev run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsndfile1-dev libvorbis-dev libogg-dev libpng-dev libglew-dev libopenal-dev libphysfs-dev gettext git po4a vorbis-tools librsvg2-bin xmlstarlet doxygen graphviz libglm-dev libmpg123-dev
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Create build directory - name: Create build directory
run: cmake -E make_directory build run: cmake -E make_directory build
- name: Checkout the nlohmann json submodule - name: Checkout the nlohmann json submodule
@ -208,7 +205,7 @@ jobs:
working-directory: build working-directory: build
run: make doc run: make doc
- name: Upload docs - name: Upload docs
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: doc name: doc
path: build/doc path: build/doc