Skip to content

Localization - Start Module #51

Localization - Start Module

Localization - Start Module #51

Workflow file for this run

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ "review_requested", "ready_for_review" ]
workflow_dispatch:
name: Linux
permissions:
id-token: write
contents: read
env:
BUILD_TYPE: Release
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- name: "Build on x64"
os: ubuntu-latest
artifact: "Linux-x64"
env:
CC: gcc
CXX: g++
fail-fast: false
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup XDG"
run: |
sudo apt-get install xdg-user-dirs -y
xdg-user-dirs-update
- name: "Setup Keyring"
uses: t1m0thyj/unlock-keyring@v1
- name: "Get Conan"
uses: turtlebrowser/get-conan@main
- name: "Setup Conan Settings"
run: |
mv conan/conansettings.yml settings_user.yml
conan config install settings_user.yml
- name: "Install Conan"
run: |
mv conan/conanfile-linux.txt conanfile.txt
mv conan/conanprofile-linux.txt conanprofile.txt
conan install conanfile.txt --profile:host=conanprofile.txt --profile:build=conanprofile.txt -s compiler.cppstd=20 --build=missing
- name: "CMake Build"
working-directory: ${{github.workspace}}/build
run: |
cmake .. -DCMAKE_TOOLCHAIN_FILE="${{github.workspace}}/build/Release/generators/conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
cmake --build .
- name: "CMake Install"
working-directory: ${{github.workspace}}/build
run: cmake --install . --prefix "${{github.workspace}}/install"
- name: "CMake Test"
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure
- name: Upload
uses: actions/upload-artifact@v3
with:
path: ${{github.workspace}}/install
name: ${{matrix.config.artifact}}-${{env.BUILD_TYPE}}