GitHub Actions: fix .NET build
This commit is contained in:
parent
3a1d1e59b5
commit
c14c46cd41
1 changed files with 9 additions and 7 deletions
16
.github/workflows/dotnet.yml
vendored
16
.github/workflows/dotnet.yml
vendored
|
|
@ -2,27 +2,29 @@ name: .NET
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Linux Native:
|
Linux_Native:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: almalinux:8
|
image: almalinux:8
|
||||||
|
env:
|
||||||
|
BUILD_TYPE: Release
|
||||||
steps:
|
steps:
|
||||||
- name: Cloning
|
- name: Cloning
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: dnf install -y cmake gcc gcc-c++
|
run: dnf install -y cmake gcc gcc-c++
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -B "${{github.workspace}}/build" -DRAGEPHOTO_C_LIBRARY=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
run: cmake -B "build" -DRAGEPHOTO_C_LIBRARY=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build "${{github.workspace}}/build" --config ${{env.BUILD_TYPE}}
|
run: cmake --build "build" --config ${{env.BUILD_TYPE}}
|
||||||
- name: Install
|
- name: Install
|
||||||
run: cmake --install "${{github.workspace}}/build" --config ${{env.BUILD_TYPE}} --prefix "${{github.workspace}}/install/usr/local"
|
run: cmake --install "build" --config ${{env.BUILD_TYPE}} --prefix "install/"
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: AlmaLinux amd64
|
name: AlmaLinux amd64
|
||||||
path: ${{github.workspace}}/install/
|
path: ${{github.workspace}}/install/
|
||||||
Windows Native:
|
Windows_Native:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
|
|
@ -51,7 +53,7 @@ jobs:
|
||||||
name: Windows MSVC ${{matrix.arch}}
|
name: Windows MSVC ${{matrix.arch}}
|
||||||
path: ${{github.workspace}}/install/
|
path: ${{github.workspace}}/install/
|
||||||
Release:
|
Release:
|
||||||
needs: [Linux Native, Windows Native]
|
needs: [Linux_Native, Windows_Native]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|
@ -65,7 +67,7 @@ jobs:
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: AlmaLinux amd64
|
name: AlmaLinux amd64
|
||||||
path: assets/win-x64
|
path: assets/linux-x64
|
||||||
- name: Download Windows MSVC amd64 Assets
|
- name: Download Windows MSVC amd64 Assets
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue