-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 962 Bytes
/
build-windows.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
34
35
36
37
38
39
40
41
42
name: build-windows
run-name: Compilando para Windows
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_call:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check cache
id: cache
uses: actions/cache/restore@v4
with:
path: aleph.exe
key: aleph-${{ hashFiles('src/**/*.[chyl]', 'Makefile') }}
- name: Setup MSYS2
if: steps.cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
install: "mingw-w64-ucrt-x86_64-gcc make bison flex"
- name: Build
if: steps.cache.outputs.cache-hit != 'true'
shell: msys2 {0}
run: make
- name: Cache binary
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: aleph.exe
key: aleph-${{ hashFiles('src/**/*.[chyl]', 'Makefile') }}