Linux #106
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 | |
VCPKG_ROOT: ${{github.workspace}}/vcpkg | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
matrix: | |
config: | |
- name: "Build on x64" | |
os: ubuntu-latest | |
env: | |
CC: gcc | |
CXX: g++ | |
fail-fast: false | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: "Setup Environment" | |
run: | | |
mkdir build | |
sudo apt-get install xdg-user-dirs -y | |
xdg-user-dirs-update | |
sudo apt-get install gettext tzdata locales -y | |
sudo locale-gen en_US.UTF-8 | |
sudo update-locale LANG=en_US.UTF-8 | |
- name: "Unlock Keyring" | |
uses: t1m0thyj/unlock-keyring@v1 | |
- name: "Vcpkg" | |
uses: johnwason/vcpkg-action@v5 | |
id: vcpkg | |
with: | |
pkgs: boost-locale curl gettext gettext-libintl glib gtest jsoncpp libsecret libuuid maddy openssl | |
triplet: x64-linux | |
cache-key: ${{ matrix.config.os }} | |
revision: fc3f61366102c1f0d4547c06d03c523bb18c13a7 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Build" | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
cmake --build . | |
- name: "Install" | |
working-directory: ${{github.workspace}}/build | |
run: cmake --install . --prefix "${{github.workspace}}/install" | |
- name: "Test" | |
run: ${{github.workspace}}/build/libaura_test | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{github.workspace}}/install | |
name: Linux-x64-${{env.BUILD_TYPE}} |