feat: add Linux and macOS CI
This commit is contained in:
parent
49119dcb6f
commit
d62af94ab9
|
@ -30,5 +30,57 @@ jobs:
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ncmdump-artifacts
|
name: Windows amd64 Build
|
||||||
path: build/ncmdump.exe
|
path: build/ncmdump.exe
|
||||||
|
|
||||||
|
build_on_linux:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y build-essential cmake
|
||||||
|
|
||||||
|
- name: Configure build
|
||||||
|
run: cmake -DCMAKE_BUILD_TYPE=Release -B build
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cmake --build build -j 4
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Linux amd64 Build
|
||||||
|
path: build/ncmdump
|
||||||
|
|
||||||
|
build_on_macos:
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
brew update
|
||||||
|
brew install git cmake
|
||||||
|
|
||||||
|
- name: Configure build
|
||||||
|
run: cmake -B build
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cmake -DCMAKE_BUILD_TYPE=Release --build build -j 4
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: macOS amd64 Build
|
||||||
|
path: build/ncmdump
|
Loading…
Reference in New Issue