mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:55:44 +00:00
[GITHUB] Update workflow actions to V3 to fix potential problems (#5569)
GitHub is starting to discontinue Actions V2 (the date was postponed). Once they enforce Actions V3, builds will likely fail to run, so it's better to change this sooner rather than later. - Update GitHub Actions to V3 - Replace deprecated set-output with $GITHUB_OUTPUT This also fixes the warnings on the builds/artifacts page.
This commit is contained in:
parent
c763713475
commit
fa7d5dbf06
1 changed files with 16 additions and 16 deletions
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
|
@ -21,12 +21,12 @@ jobs:
|
||||||
id: get_rosbe_spec
|
id: get_rosbe_spec
|
||||||
run: |
|
run: |
|
||||||
gcc -march=native -Q --help=target | grep "\-march= " | awk '{print $NF}'
|
gcc -march=native -Q --help=target | grep "\-march= " | awk '{print $NF}'
|
||||||
echo ::set-output name=march-sha::$(gcc -march=native -Q --help=target | sha1sum | awk '{print $1}')
|
echo march-sha=$(gcc -march=native -Q --help=target | sha1sum | awk '{print $1}') >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=git-sha::$(git ls-remote https://github.com/zefklop/RosBE.git | grep unix_amd64 | awk '{print $1}')
|
echo git-sha=$(git ls-remote https://github.com/zefklop/RosBE.git | grep unix_amd64 | awk '{print $1}') >> $GITHUB_OUTPUT
|
||||||
wget https://gist.githubusercontent.com/zefklop/b2d6a0b470c70183e93d5285a03f5899/raw/build_rosbe_ci.sh
|
wget https://gist.githubusercontent.com/zefklop/b2d6a0b470c70183e93d5285a03f5899/raw/build_rosbe_ci.sh
|
||||||
- name: Get RosBE
|
- name: Get RosBE
|
||||||
id: get_rosbe
|
id: get_rosbe
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: RosBE-CI
|
path: RosBE-CI
|
||||||
key: RosBE-CI-${{runner.os}}-${{steps.get_rosbe_spec.outputs.march-sha}}-${{steps.get_rosbe_spec.outputs.git-sha}}-${{hashfiles('./build_rosbe_ci.sh')}}
|
key: RosBE-CI-${{runner.os}}-${{steps.get_rosbe_spec.outputs.march-sha}}-${{steps.get_rosbe_spec.outputs.git-sha}}-${{hashfiles('./build_rosbe_ci.sh')}}
|
||||||
|
@ -46,11 +46,11 @@ jobs:
|
||||||
sudo ./llvm.sh $LLVM_VERSION
|
sudo ./llvm.sh $LLVM_VERSION
|
||||||
echo "D_CLANG_VERSION=-DCLANG_VERSION=$LLVM_VERSION" >> $GITHUB_ENV
|
echo "D_CLANG_VERSION=-DCLANG_VERSION=$LLVM_VERSION" >> $GITHUB_ENV
|
||||||
- name: Source checkout
|
- name: Source checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: src
|
path: src
|
||||||
- name: Set up cache for ccache
|
- name: Set up cache for ccache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ccache
|
path: ccache
|
||||||
key: ccache-${{matrix.compiler}}-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
key: ccache-${{matrix.compiler}}-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
||||||
|
@ -74,7 +74,7 @@ jobs:
|
||||||
- name: Print ccache statistics
|
- name: Print ccache statistics
|
||||||
run: ccache -s
|
run: ccache -s
|
||||||
- name: Upload ISOs
|
- name: Upload ISOs
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: reactos-${{matrix.compiler}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
name: reactos-${{matrix.compiler}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
||||||
path: |
|
path: |
|
||||||
|
@ -129,7 +129,7 @@ jobs:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
toolset: ${{matrix.toolset}}
|
toolset: ${{matrix.toolset}}
|
||||||
- name: Source checkout
|
- name: Source checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: src
|
path: src
|
||||||
- name: Configure
|
- name: Configure
|
||||||
|
@ -139,7 +139,7 @@ jobs:
|
||||||
- name: Generate ISOs
|
- name: Generate ISOs
|
||||||
run: cmake --build build --target bootcd --target livecd
|
run: cmake --build build --target bootcd --target livecd
|
||||||
- name: Upload ISOs
|
- name: Upload ISOs
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: reactos-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
name: reactos-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
||||||
path: |
|
path: |
|
||||||
|
@ -147,7 +147,7 @@ jobs:
|
||||||
build/livecd.iso
|
build/livecd.iso
|
||||||
- name: Upload debug symbols
|
- name: Upload debug symbols
|
||||||
if: ${{ matrix.config == 'Debug' }}
|
if: ${{ matrix.config == 'Debug' }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: reactos-syms-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
name: reactos-syms-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{matrix.dllver}}-${{github.sha}}
|
||||||
path: build/msvc_pdb
|
path: build/msvc_pdb
|
||||||
|
@ -183,7 +183,7 @@ jobs:
|
||||||
arch: amd64_arm64
|
arch: amd64_arm64
|
||||||
toolset: ${{matrix.toolset}}
|
toolset: ${{matrix.toolset}}
|
||||||
- name: Source checkout
|
- name: Source checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: src
|
path: src
|
||||||
- name: Configure
|
- name: Configure
|
||||||
|
@ -204,7 +204,7 @@ jobs:
|
||||||
if: ${{ matrix.arch == 'arm64' }}
|
if: ${{ matrix.arch == 'arm64' }}
|
||||||
run: cmake --build build --target calc magnify mstsc notepad osk regedit taskmgr winmine wordpad base/applications/screensavers/all -- -k0
|
run: cmake --build build --target calc magnify mstsc notepad osk regedit taskmgr winmine wordpad base/applications/screensavers/all -- -k0
|
||||||
- name: Upload compiled binaries
|
- name: Upload compiled binaries
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: reactos-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
name: reactos-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
||||||
path: |
|
path: |
|
||||||
|
@ -227,7 +227,7 @@ jobs:
|
||||||
!**/*.tlb
|
!**/*.tlb
|
||||||
- name: Upload debug symbols
|
- name: Upload debug symbols
|
||||||
if: ${{ matrix.config == 'Debug' }}
|
if: ${{ matrix.config == 'Debug' }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: reactos-syms-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
name: reactos-syms-msvc${{matrix.toolset}}-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
||||||
path: build/msvc_pdb
|
path: build/msvc_pdb
|
||||||
|
@ -268,7 +268,7 @@ jobs:
|
||||||
- name: Add LLVM to PATH
|
- name: Add LLVM to PATH
|
||||||
run: echo "${env:LLVM_PATH}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
run: echo "${env:LLVM_PATH}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
- name: Source checkout
|
- name: Source checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: src
|
path: src
|
||||||
- name: Configure
|
- name: Configure
|
||||||
|
@ -278,7 +278,7 @@ jobs:
|
||||||
- name: Generate ISOs
|
- name: Generate ISOs
|
||||||
run: cmake --build build --target bootcd --target livecd
|
run: cmake --build build --target bootcd --target livecd
|
||||||
- name: Upload ISOs
|
- name: Upload ISOs
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: reactos-clang-cl-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
name: reactos-clang-cl-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
||||||
path: |
|
path: |
|
||||||
|
@ -286,7 +286,7 @@ jobs:
|
||||||
build/livecd.iso
|
build/livecd.iso
|
||||||
- name: Upload debug symbols
|
- name: Upload debug symbols
|
||||||
if: ${{ matrix.config == 'Debug' }}
|
if: ${{ matrix.config == 'Debug' }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: reactos-syms-clang-cl-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
name: reactos-syms-clang-cl-${{matrix.arch}}-${{matrix.config}}-${{github.sha}}
|
||||||
path: build/msvc_pdb
|
path: build/msvc_pdb
|
||||||
|
@ -307,7 +307,7 @@ jobs:
|
||||||
# uses: ilammy/msvc-dev-cmd@v1
|
# uses: ilammy/msvc-dev-cmd@v1
|
||||||
# with:
|
# with:
|
||||||
# arch: amd64_x86
|
# arch: amd64_x86
|
||||||
# - uses: actions/checkout@v2
|
# - uses: actions/checkout@v3
|
||||||
# with:
|
# with:
|
||||||
# path: src
|
# path: src
|
||||||
# - name: Configure
|
# - name: Configure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue