Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Aug 14, 2024
1 parent 02bbac6 commit 174a5c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
jobs:
build:
name: "Build on x64"
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
Expand All @@ -24,14 +24,16 @@ jobs:
- name: "Setup Environment"
run: |
mkdir build
sudo add-apt-repository universe
sudo apt-get update -y
sudo apt-get install firefox g++-14 gcc-14 xdg-user-dirs gettext tzdata locales -y
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 /usr/bin/gcc-14 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100
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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
jobs:
build:
name: "Build on x64"
runs-on: windows-2019
runs-on: windows-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
Expand All @@ -35,7 +35,7 @@ jobs:
- name: "Build"
working-directory: ${{github.workspace}}/build
run: |
cmake -G "Visual Studio 16 2019" .. -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
cmake -G "Visual Studio 17 2022" .. -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
cmake --build . --config Release
- name: "Install"
working-directory: ${{github.workspace}}/build
Expand Down

0 comments on commit 174a5c4

Please sign in to comment.