Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dc1218 authored May 7, 2024
1 parent 88ce9a5 commit a9f05ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: C++ CI with vcpkg
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install vcpkg
run: git clone https://github.com/microsoft/vcpkg.git && cd vcpkg && ./bootstrap-vcpkg.sh && echo "::add-path::${PWD}"
- name: Install dependencies with vcpkg
working-directory: ${{github.workspace}}
run: vcpkg install --triplet x64-linux --manifest-mode
- name: Configure and build
run: mkdir build && cd build && cmake --build . --config Release

0 comments on commit a9f05ac

Please sign in to comment.