2024-02-07 15:03:52 +08:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_on_windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
2024-02-07 15:07:04 +08:00
|
|
|
- name: Checkout repository
|
2024-02-07 15:13:18 +08:00
|
|
|
uses: actions/checkout@v4
|
2024-02-07 15:03:52 +08:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2024-02-07 15:13:18 +08:00
|
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: UCRT64
|
|
|
|
update: true
|
|
|
|
install: git mingw-w64-ucrt-x86_64-toolchain
|
2024-02-07 15:03:52 +08:00
|
|
|
|
2024-02-07 22:54:38 +08:00
|
|
|
- name: Configure build
|
|
|
|
run: cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -B build
|
|
|
|
|
2024-02-07 15:03:52 +08:00
|
|
|
- name: Build
|
2024-02-07 22:54:38 +08:00
|
|
|
run: cmake --build build -j 4
|
|
|
|
|
2024-02-07 15:03:52 +08:00
|
|
|
- name: Upload artifact
|
2024-02-07 22:54:38 +08:00
|
|
|
uses: actions/upload-artifact@v4
|
2024-02-07 15:03:52 +08:00
|
|
|
with:
|
|
|
|
name: ncmdump-artifacts
|
2024-02-07 22:54:38 +08:00
|
|
|
path: build/ncmdump.exe
|