updated github actions to v4: checkout, upload-artifact, download-artifact
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -12,20 +12,20 @@ jobs:
|
|||||||
windows:
|
windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -B ${{github.workspace}}/build -A x64
|
cmake -B ${{github.workspace}}/build -A x64
|
||||||
cmake --build ${{github.workspace}}/build --config Release
|
cmake --build ${{github.workspace}}/build --config Release
|
||||||
- name: Upload windows build
|
- name: Upload windows build
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: windows
|
name: windows
|
||||||
path: ${{github.workspace}}/build/Analyzers/Release/*.dll
|
path: ${{github.workspace}}/build/Analyzers/Release/*.dll
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -B ${{github.workspace}}/build/x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64
|
cmake -B ${{github.workspace}}/build/x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64
|
||||||
@@ -33,19 +33,19 @@ jobs:
|
|||||||
cmake -B ${{github.workspace}}/build/arm64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64
|
cmake -B ${{github.workspace}}/build/arm64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64
|
||||||
cmake --build ${{github.workspace}}/build/arm64
|
cmake --build ${{github.workspace}}/build/arm64
|
||||||
- name: Upload MacOS x86_64 build
|
- name: Upload MacOS x86_64 build
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos_x86_64
|
name: macos_x86_64
|
||||||
path: ${{github.workspace}}/build/x86_64/Analyzers/*.so
|
path: ${{github.workspace}}/build/x86_64/Analyzers/*.so
|
||||||
- name: Upload MacOS arm64 build
|
- name: Upload MacOS arm64 build
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos_arm64
|
name: macos_arm64
|
||||||
path: ${{github.workspace}}/build/arm64/Analyzers/*.so
|
path: ${{github.workspace}}/build/arm64/Analyzers/*.so
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
|
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
CC: gcc-10
|
CC: gcc-10
|
||||||
CXX: g++-10
|
CXX: g++-10
|
||||||
- name: Upload Linux build
|
- name: Upload Linux build
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux
|
name: linux
|
||||||
path: ${{github.workspace}}/build/Analyzers/*.so
|
path: ${{github.workspace}}/build/Analyzers/*.so
|
||||||
@@ -63,14 +63,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: download individual builds
|
- name: download individual builds
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/artifacts
|
path: ${{github.workspace}}/artifacts
|
||||||
- name: zip
|
- name: zip
|
||||||
run: |
|
run: |
|
||||||
cd ${{github.workspace}}/artifacts
|
cd ${{github.workspace}}/artifacts
|
||||||
zip -r ${{github.workspace}}/analyzer.zip .
|
zip -r ${{github.workspace}}/analyzer.zip .
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: all-platforms
|
name: all-platforms
|
||||||
path: ${{github.workspace}}/artifacts/**
|
path: ${{github.workspace}}/artifacts/**
|
||||||
|
|||||||
Reference in New Issue
Block a user