-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 925 Bytes
/
c-cpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
env:
target: "snake-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'windows' }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libncurses5-dev libncursesw5-dev
- name: make
run: |
mkdir build
make TARGET=build/${{env.target}}
- name: Download a Build Artifact
uses: actions/upload-artifact@v4
with:
# Name of the artifact to download. If unspecified, all artifacts for the run are downloaded.
name: build-${{matrix.os}}
# Destination path. Supports basic tilde expansion. Defaults to $GITHUB_WORKSPACE
path: build