This commit is contained in:
CocoSimone
2022-09-17 18:09:34 +02:00
parent 13c32cd8d9
commit f4458e2aea

View File

@@ -2,7 +2,7 @@ name: build
on: push on: push
jobs: jobs:
build-linux: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@@ -10,13 +10,12 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update -qq sudo apt-get update -qq
sudo apt-get install -y build-essential libgtk-3-dev libsdl2-dev libvulkan-dev libfmt-dev git sudo apt-get install -y build-essential libgtk-3-dev libsdl2-dev libfmt-dev git
sudo apt-get install -y vulkan-tools libvulkan1 libvulkan-dev vulkan-validationlayers-dev spirv-tools
- name: Build natsukashii - name: Build natsukashii
run: | run: |
cd src cmake -B build -DCMAKE_BUILD_TYPE=Release -S src
cmake -B build -DCMAKE_BUILD_TYPE=Release make -j$(nproc) -C build
cd build
make -j$(nproc)
- name: Collect artifacts - name: Collect artifacts
run: | run: |
mkdir upload mkdir upload
@@ -41,18 +40,17 @@ jobs:
install: make git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-SDL2 mingw-w64-x86_64-vulkan-devel mingw-w64-x86_64-fmt install: make git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-SDL2 mingw-w64-x86_64-vulkan-devel mingw-w64-x86_64-fmt
- name: Build natsukashii - name: Build natsukashii
run: | run: |
cd src
cmake \ cmake \
-G"Unix Makefiles" \ -G"Unix Makefiles" \
-B build \ -B build \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-s" -DCMAKE_CXX_FLAGS="-s" \
cd build -S src
make -j$(nproc) make -j$(nproc) -C build
- name: Collect artifacts - name: Collect artifacts
run: | run: |
mkdir upload mkdir upload
cp build/natsukashii upload cp build/natsukashii.exe upload
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with: