attempting to fix CI builds once again
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -12,6 +12,11 @@ jobs:
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y build-essential libgtk-3-dev libsdl2-dev git ninja-build nlohmann-json3-dev
|
||||
sudo apt-get install -y vulkan-tools libvulkan1 libvulkan-dev vulkan-validationlayers-dev spirv-tools
|
||||
git clone --recursive https://github.com/fmtlib/fmt
|
||||
cd fmt
|
||||
cmake -B build
|
||||
cd build
|
||||
sudo make install
|
||||
- name: Build natsukashii
|
||||
run: |
|
||||
cmake \
|
||||
@@ -28,7 +33,7 @@ jobs:
|
||||
mkdir upload
|
||||
cp -r build/{natsukashii,resources} upload
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: natsukashii-linux
|
||||
path: upload
|
||||
@@ -44,17 +49,20 @@ jobs:
|
||||
vcpkg install sdl2[vulkan]:x64-windows
|
||||
vcpkg install fmt:x64-windows
|
||||
vcpkg install nlohmann-json:x64-windows
|
||||
vcpkg install vulkan:x64-windows
|
||||
- name: Build natsukashii
|
||||
run: |
|
||||
cmake -B build -T clangcl -DCAPSTONE_ARCHITECTURE_DEFAULT=OFF -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_MIPS_SUPPORT=ON -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -S src
|
||||
cmake --build . --config Release
|
||||
cmake --build build --config Release
|
||||
- name: Collect artifacts
|
||||
run: |
|
||||
mkdir upload
|
||||
cp -r build/{natsukashii.exe,resources,SDL2.dll,fmt.dll} upload
|
||||
cp build/Release/natsukashii.exe upload
|
||||
mkdir upload/resources
|
||||
cp build/resources/* upload/resources
|
||||
cp build/Release/SDL2.dll upload
|
||||
cp build/Release/fmt.dll upload
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: natsukashii-windows
|
||||
path: upload
|
||||
|
||||
Reference in New Issue
Block a user