Build #7
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
name: Build | |
on: | |
workflow_dispatch: | |
env: | |
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Export GitHub Actions cache environment variables | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | |
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
- name: checkout code | |
uses: actions/checkout@v4 | |
- name: clone vcpkg | |
run: git clone https://github.com/microsoft/vcpkg.git | |
- name: bootstrap vcpkg | |
run: ./vcpkg/bootstrap-vcpkg.sh -disableMetrics | |
- name: at update | |
run: sudo apt update | |
- name: apt-install package dependencies | |
run: sudo apt install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config build-essential | |
- name: install dependencies | |
run: ./vcpkg/vcpkg install | |
- name: Build the project | |
run: make |