Skip to content

Commit

Permalink
Update cibuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY authored Jun 1, 2024
1 parent 8623f5f commit 56b61d8
Showing 1 changed file with 2 additions and 128 deletions.
130 changes: 2 additions & 128 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,66 +8,6 @@ on:
workflow_dispatch:

jobs:
windows:
name: Windows ${{ matrix.Configuration }} ${{ matrix.Platform }} (msvc)
runs-on: windows-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Configuration: [Debug, Mixed, Release, Release Master Gold]
Platform: [x64, x86]
steps:
- uses: actions/checkout@main
with:
submodules: recursive

- uses: microsoft/setup-msbuild@main

- uses: nuget/setup-nuget@main

- name: Restore NuGet packages
run: nuget restore src\engine.sln

- name: Build
working-directory: src
run: msbuild /m /p:Configuration="${{ matrix.Configuration }}" /p:Platform="${{ matrix.Platform }}" engine.sln

- name: Prepare artifacts
shell: cmd
run: misc/windows/xr_pack_build.cmd "${{ matrix.Configuration }}" "${{ matrix.Platform }}"

- name: Upload OpenXRay artifact
uses: actions/upload-artifact@main
with:
name: OpenXRay.${{ matrix.Configuration }} ${{ matrix.Platform }} (github-${{ github.run_number }}).7z
path: res/OpenXRay.*.7z

- name: Upload Symbols
uses: actions/upload-artifact@main
with:
name: Symbols.${{ matrix.Configuration }} ${{ matrix.Platform }} (github-${{ github.run_number }}).7z
path: res/Symbols.*.7z

- name: Upload Utils
uses: actions/upload-artifact@main
with:
name: Utils.${{ matrix.Configuration }} ${{ matrix.Platform }} (github-${{ github.run_number }}).7z
path: res/Utils.*.7z

- name: Update latest-nightly tag
uses: EndBug/latest-tag@latest
if: github.ref_name == 'dev'
id: update-latest-nightly-tag
with:
ref: latest-nightly

- name: Publish latest nightly build
if: ${{ steps.update-latest-nightly-tag.outcome == 'success' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload --clobber latest-nightly (get-item res/*.*.7z)

cmake:
name: ${{ matrix.platform.name }} ${{ matrix.configuration }} ${{ matrix.platform.arch }} (${{ matrix.platform.cc || 'unknown compiler' }})
runs-on: ${{ matrix.platform.os }}
Expand All @@ -91,8 +31,8 @@ jobs:
# You may also want to set XRAY_LINKER when changing the compiler.
- { name: Ubuntu, os: ubuntu-latest, arch: amd64, cc: gcc, }
- { name: Ubuntu, os: ubuntu-latest, arch: amd64, cc: clang, cxx: clang++, flags: "-DXRAY_LINKER=lld", }
#- { name: Ubuntu, os: ubuntu-latest, arch: arm64, cc: gcc, container: 'dockcross/linux-arm64', }
#- { name: Ubuntu, os: ubuntu-latest, arch: ppc64el, cc: gcc, container: 'dockcross/linux-ppc64le:latest', }
- { name: Ubuntu, os: ubuntu-latest, arch: arm64, cc: gcc, container: 'dockcross/linux-arm64', }
- { name: Ubuntu, os: ubuntu-latest, arch: ppc64el, cc: gcc, container: 'dockcross/linux-ppc64le:latest', }
- { name: Alpine, os: ubuntu-latest, arch: x86_64, cc: gcc, shell: 'alpine.sh {0}', flags: "-DXRAY_LINKER=mold", }
- { name: Alpine, os: ubuntu-latest, arch: x86, cc: gcc, shell: 'alpine.sh {0}', flags: "-DXRAY_LINKER=mold", }
- { name: Fedora, os: ubuntu-latest, arch: x86_64, cc: gcc, container: 'fedora:latest', }
Expand Down Expand Up @@ -167,69 +107,3 @@ jobs:
with:
name: ${{ matrix.platform.name }} ${{ matrix.configuration }} ${{ matrix.platform.arch }} (${{ matrix.platform.cc }} github-${{ github.run_number }})
path: build/artifacts/openxray*.*

bsd:
name: ${{ matrix.platform.name }} ${{ matrix.configuration }} ${{ matrix.platform.arch }}
runs-on: ubuntu-latest
timeout-minutes: 35
env:
CFLAGS: "-w"
CXXFLAGS: "-w"
strategy:
fail-fast: false
matrix:
platform:
- { name: FreeBSD, os: freebsd, os-version: '14.0', arch: x86_64,
install-cmd: "sudo pkg update && sudo pkg install -y cmake sdl2 lzo2 jpeg-turbo openal-soft libogg libtheora libvorbis"
}
- { name: OpenBSD, os: openbsd, os-version: '7.5', arch: x86_64,
install-cmd: "sudo pkg_add cmake SDL2 lzo2 jpeg openal libogg libtheora libvorbis",
}
- { name: NetBSD, os: netbsd, os-version: '10.0', arch: x86_64,
install-cmd: "sudo pkgin -y install cmake SDL2 lzo libjpeg-turbo openal-soft libogg libtheora libvorbis",
}
configuration: [Debug, Release]

steps:
- uses: actions/checkout@main
with:
submodules: recursive

- name: Setup ${{ matrix.platform.name }} and packages
uses: cross-platform-actions/action@v0.24.0
with:
operating_system: ${{ matrix.platform.os }}
architecture: ${{ matrix.platform.arch }}
version: ${{ matrix.platform.os-version }}
cpu_count: 4
memory: 13G
environment_variables: CFLAGS CXXFLAGS
shutdown_vm: false
sync_files: runner-to-vm
run: ${{ matrix.platform.install-cmd }}

- name: Run CMake
uses: cross-platform-actions/action@v0.24.0
with:
operating_system: ${{ matrix.platform.os }}
architecture: ${{ matrix.platform.arch }}
version: ${{ matrix.platform.os-version }}
cpu_count: 4
memory: 13G
environment_variables: CFLAGS CXXFLAGS
shutdown_vm: false
sync_files: false
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.Configuration }} -DCMAKE_UNITY_BUILD=ON

- name: Run CMake Build
uses: cross-platform-actions/action@v0.24.0
with:
operating_system: ${{ matrix.platform.os }}
architecture: ${{ matrix.platform.arch }}
version: ${{ matrix.platform.os-version }}
cpu_count: 4
memory: 13G
environment_variables: CFLAGS CXXFLAGS
shutdown_vm: false
sync_files: false
run: cmake --build build --config ${{ matrix.Configuration }} --parallel 4

0 comments on commit 56b61d8

Please sign in to comment.