Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneko committed Nov 16, 2023
1 parent 9ae2dc1 commit fd5dc54
Showing 1 changed file with 143 additions and 0 deletions.
143 changes: 143 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
name: Build
on:
push:
pull_request:

env:
# common settings
CMAKE_VERSION: 3.21.x
# paths
ci_source_dir: ${{ github.workspace }}/source-code
ci_build_dir: ${{ github.workspace }}/cmake-build

jobs:
Windows:
runs-on: windows-2022

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: ${{ env.ci_source_dir }}
fetch-depth: 1

- name: Download SDK
uses: robinraju/release-downloader@v1.8
with:
repository: rbfx/rbfx
tag: latest
fileName: rebelfork-sdk-Windows-msvc-rel-dll-x64-latest.zip
extract: true

- name: Configure
run: |
cd ${{ github.workspace }}/source-code/
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=ON -DREBELFORK_SDK=${{ github.workspace }}/SDK
- name: Build
run: |
cmake --build ./cmake-build
#
#
#
# - name: Set up butler
# if: ${{ env.ci_itch == 'true' }}
# uses: jdno/setup-butler@v1
#
# - name: Build Cache
# uses: actions/cache@v3
# with:
# path: ${{ env.CCACHE_DIR }}
# key: ${{ env.ccache_prefix }}-${{ github.job }}-${{ matrix.ci_arch }}-${{ matrix.ci_lib_type }}-${{ matrix.ci_build_type }}-${{ matrix.ci_compiler }}-${{ github.sha }}
# restore-keys: |
# ${{ env.ccache_prefix }}-${{ github.job }}-${{ matrix.ci_arch }}-${{ matrix.ci_lib_type }}-${{ matrix.ci_build_type }}-${{ matrix.ci_compiler }}
#
# - name: Setup dotnet
# uses: actions/setup-dotnet@v3
# if: matrix.ci_lib_type == 'dll'
# with:
# dotnet-version: ${{ env.DOTNET_VERSION }}
#
# - name: Setup cmake
# # FIXME: CMake installed by this action fails with MinGW because it can find 'C:/Program Files/Git/usr/bin/sh.exe' on PATH.
# if: matrix.ci_compiler != 'mingw'
# uses: jwlawson/actions-setup-cmake@v1
# with:
# cmake-version: '${{ env.CMAKE_VERSION }}'
#
# - name: Dependencies
# shell: bash
# run: ${{ env.ci_build_script }} dependencies
#
# - name: Generate
# shell: bash
# run: ${{ env.ci_build_script }} generate
#
# - name: Build
# shell: bash
# run: ${{ env.ci_build_script }} build
#
# - name: Test (Native)
# if: matrix.ci_compiler == 'msvc'
# shell: bash
# run: ${{ env.ci_build_script }} test
#
# - name: Test (Managed)
# if: (matrix.ci_compiler == 'msvc') && (matrix.ci_lib_type == 'dll')
# shell: bash
# run: ${{ env.ci_build_script }} cstest
#
# - name: Install
# shell: bash
# run: ${{ env.ci_build_script }} install
#
# - uses: actions/upload-artifact@v3
# if: env.ci_artifacts == 'true'
# with:
# name: 'rbfx-${{ github.job }}-${{ matrix.ci_compiler }}-${{ matrix.ci_build_type }}-${{ matrix.ci_lib_type }}-${{ matrix.ci_arch }}-${{ github.sha }}'
# path: ${{ env.ci_sdk_dir }}
#
# - name: Zip SDK
# if: ${{ env.ci_release_sdk == 'true' }}
# uses: TheDoctor0/zip-release@0.7.6
# with:
# directory: ${{ github.workspace }}
# filename: ${{ github.workspace }}/SDK.zip
# path: 'SDK'
# exclusions: 'SDK/cmake-build SDK/SDK'
#
# - name: Release SDK
# if: ${{ env.ci_release_sdk == 'true' }}
# uses: WebFreak001/deploy-nightly@v3.0.0
# with:
# upload_url: ${{ env.ci_latest_release_url }}
# release_id: ${{ env.ci_latest_release_id }}
# asset_path: ${{ github.workspace }}/SDK.zip
# asset_name: 'rebelfork-sdk-${{ github.job }}-${{ matrix.ci_compiler }}-${{ matrix.ci_build_type }}-${{ matrix.ci_lib_type }}-${{ matrix.ci_arch }}-latest.zip'
# asset_content_type: application/zip
# max_releases: 1
#
# - name: Zip binaries
# if: ${{ env.ci_release_bin == 'true' }}
# uses: TheDoctor0/zip-release@0.7.6
# with:
# directory: ${{ github.workspace }}/SDK/bin/RelWithDebInfo/
# filename: ${{ github.workspace }}/SDK-bin.zip
# path: '.'
#
# - name: Release binaries
# if: ${{ env.ci_release_bin == 'true' }}
# uses: WebFreak001/deploy-nightly@v3.0.0
# with:
# upload_url: ${{ env.ci_latest_release_url }}
# release_id: ${{ env.ci_latest_release_id }}
# asset_path: ${{ github.workspace }}/SDK-bin.zip
# asset_name: 'rebelfork-bin-${{ github.job }}-${{ matrix.ci_compiler }}-${{ matrix.ci_build_type }}-${{ matrix.ci_lib_type }}-${{ matrix.ci_arch }}-latest.zip'
# asset_content_type: application/zip
# max_releases: 1
#
# - name: Publish to itch.io
# if: ${{ env.ci_itch == 'true' }}
# shell: bash
# run: ${{ env.ci_build_script }} publish-to-itch
#

0 comments on commit fd5dc54

Please sign in to comment.