From 38c9fecf6ed88eb5f6c18488365c00b3012cb053 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbarton@users.noreply.github.com> Date: Sat, 4 May 2024 21:24:14 +0100 Subject: [PATCH] Update outdated actions to remove warnings when workflow runs --- .github/workflows/main.yml | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ce0ebd6..088d436b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,24 +24,33 @@ jobs: include: - name: ubu22 os: ubuntu-22.04 + micromamba_shell_init: bash - name: ubu22-analyzers os: ubuntu-22.04 coverage: true extra_cmake_flags: -DCMAKE_BUILD_TYPE=Debug + micromamba_shell_init: bash - name: osx13-x86 os: macos-13 + micromamba_shell_init: bash - name: osx14-arm os: macos-14 + micromamba_shell_init: bash - name: Windows22 os: windows-2022 + micromamba_shell_init: cmd.exe steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: install mamba - uses: mamba-org/provision-with-micromamba@main + uses: mamba-org/setup-micromamba@main with: environment-file: environment-dev.yml + init-shell: >- + ${{ matrix.micromamba_shell_init }} environment-name: xeus-cpp - name: micromamba shell hook @@ -56,10 +65,9 @@ jobs: run: | $HOME/micromamba-bin/micromamba install cxx-compiler -c conda-forge -y - - name: cmake configure if: ${{ runner.os == 'windows' }} - shell: cmd + shell: cmd /C call {0} run: | call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-cpp mkdir -p build @@ -80,7 +88,7 @@ jobs: - name: build & install if: ${{ runner.os == 'windows' }} - shell: cmd + shell: cmd /C call {0} run: | call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-cpp cd build @@ -126,7 +134,7 @@ jobs: - name: Upload to codecov.io if: ${{ success() && (matrix.coverage == true) }} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: file: ./coverage.info @@ -144,14 +152,19 @@ jobs: fail-fast: false matrix: emsdk_ver: ["3.1.45"] + micromamba_shell_init: ["bash"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - - name: Install mamba - uses: mamba-org/provision-with-micromamba@main + - name: install mamba + uses: mamba-org/setup-micromamba@main with: environment-file: environment-wasm-build.yml + init-shell: >- + ${{ matrix.micromamba_shell_init }} environment-name: xeus-cpp-wasm-build - name: Setup emsdk