Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ jobs:
;;
esac

- name: "Clone required repos"
uses: actions/checkout@master
with:
repository: aleksisch/das-fmt # Path to repository with das-fmt scripts
path: das-fmt

- name: "Build: Daslang"
run: |
set -eux
Expand All @@ -157,13 +163,11 @@ jobs:
linux64)
cmake --no-warn-unused-cli -B./build -DCMAKE_BUILD_TYPE:STRING=${{ matrix.cmake_preset }} -G "${{ matrix.cmake_generator }}"
cd build
ninja daslang
ninja daScriptTest
ninja
;;
windows*)
cmake --no-warn-unused-cli -B./build -G "${{ matrix.cmake_generator }}" -T host=x86 -A ${{ matrix.architecture_string }}
cmake --build ./build --config ${{ matrix.cmake_preset }} --target daslang
cmake --build ./build --config ${{ matrix.cmake_preset }} --target daScriptTest
cmake --build ./build --config ${{ matrix.cmake_preset }}
;;
*)
CC=clang CXX=clang++ cmake --no-warn-unused-cli -B./build -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.cmake_preset }} -G "${{ matrix.cmake_generator }}"
Expand All @@ -174,6 +178,21 @@ jobs:
;;
esac

- name: "Run formatter"
run: |
set -eux
case "${{ matrix.target }}${{ matrix.architecture }}" in
windows*)
./bin/"${{ matrix.cmake_preset }}"/daslang ./das-fmt/dasfmt.das -- --path ./ --verify
;;
*)
ls -lh
ls -lh ./das-fmt
ls -lh ./das-fmt/das-fmt
./bin/daslang ./das-dmt/dasfmt.das -- --path ./ --verify
;;
esac

- name: "Test"
run: |
set -eux
Expand Down