Update systemcredentials.cpp #377
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: | |
GITHUB_ACTIONS: true | |
VCPKG_ROOT: ${{github.workspace}}/vcpkg | |
jobs: | |
build: | |
name: "Build on x64" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: "Setup Environment" | |
run: | | |
mkdir build | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
sudo apt-get install firefox xdg-user-dirs xdg-user-dirs-gtk gettext tzdata locales -y | |
brew install gcc cmake | |
xdg-user-dirs-update | |
xdg-user-dirs-gtk-update | |
sudo locale-gen en_US.UTF-8 | |
sudo update-locale LANG=en_US.UTF-8 | |
sudo update-alternatives --install /usr/bin/gcc gcc /home/linuxbrew/.linuxbrew/bin/gcc-14 100 | |
sudo update-alternatives --install /usr/bin/g++ g++ /home/linuxbrew/.linuxbrew/bin/g++-14 100 | |
sudo update-alternatives --install /usr/bin/cmake cmake /home/linuxbrew/.linuxbrew/bin/cmake 100 | |
- name: "Unlock Keyring" | |
uses: t1m0thyj/unlock-keyring@v1 | |
- name: "Vcpkg" | |
uses: johnwason/vcpkg-action@v6 | |
id: vcpkg | |
with: | |
pkgs: boost-json curl gettext-libintl glib gtest libsecret maddy openssl | |
triplet: x64-linux | |
revision: a54c4ba3aef5fe56cf11192f4476aaf057876551 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
github-binarycache: true | |
- name: "Build" | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install | |
cmake --build . | |
- name: "Install" | |
working-directory: ${{github.workspace}}/build | |
run: cmake --install . | |
- name: "Test" | |
run: ${{github.workspace}}/build/libnick_test | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ${{github.workspace}}/install | |
name: Linux-x64-Release |