Skip to content

Commit c93a19d

Browse files
Create build.yml
1 parent 9bd5436 commit c93a19d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build (Linux + Windows)
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
name: Build on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest]
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Set up build environment
22+
if: matrix.os == 'ubuntu-latest'
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -y make gcc
26+
27+
- name: Set up build environment (Windows)
28+
if: matrix.os == 'windows-latest'
29+
run: |
30+
choco install make mingw
31+
shell: pwsh
32+
33+
- name: Build library and tests
34+
run: make all
35+
shell: bash
36+
37+
- name: Show build output
38+
run: ls -R build
39+
shell: bash

0 commit comments

Comments
 (0)