Skip to content

Commit

Permalink
Create build-linux-natives.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vddCore authored May 12, 2024
1 parent 4f171a5 commit 6397706
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-linux-natives.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build Linux natives

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false

# Set up a matrix to run the following 3 configurations:
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [ubuntu-latest]
build_type: [Release, Debug, RelWithDebInfo]
c_compiler: [gcc]

steps:
- uses: actions/checkout@v4

- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cd Dependencies && ./build_natives && cd ..

- name: Pack artifact
uses: actions/upload-artifact@v3.1.3
with:
name: chroma-natives-linux
path: Dependencies/build_env/artifacts
if-no-files-found: error
retention-days: 90

0 comments on commit 6397706

Please sign in to comment.