Linux #65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
GITHUB_ACTIONS: true | |
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: "Set en_US Locale" | |
run: | | |
sudo apt-get install gettext tzdata locales -y | |
sudo locale-gen en_US.UTF-8 | |
sudo update-locale LANG=en_US.UTF-8 | |
- 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: .${{github.workspace}}/build/libaura_test | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{github.workspace}}/install | |
name: ${{matrix.config.artifact}}-${{env.BUILD_TYPE}} |