From 42376b71721cd4fbc5dbffb00322610d2fe84640 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Tue, 26 Jul 2022 16:49:10 +0300 Subject: [PATCH] Format workflows --- .github/workflows/{Build.yml => ci-build.yml} | 22 ++++++++++++++----- .github/workflows/release.yml | 5 ++++- 2 files changed, 20 insertions(+), 7 deletions(-) rename .github/workflows/{Build.yml => ci-build.yml} (88%) diff --git a/.github/workflows/Build.yml b/.github/workflows/ci-build.yml similarity index 88% rename from .github/workflows/Build.yml rename to .github/workflows/ci-build.yml index 404938c..f12d1c5 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/ci-build.yml @@ -3,14 +3,14 @@ name: Build on: push: paths: - - '.github/workflows/Build.yml' + - '.github/workflows/ci-build.yml' - 'src/**.cc' - 'src/**.h' - '**/CMakeLists.txt' - '**/*.cmake' pull_request: paths: - - '.github/workflows/Build.yml' + - '.github/workflows/ci-build.yml' - 'src/**.cc' - 'src/**.h' - '**/CMakeLists.txt' @@ -93,7 +93,10 @@ jobs: - name: Build run: | - cmake --build build -j $(nproc) + cmake \ + --build build \ + -j $(nproc) \ + # EOL - name: Upload uses: actions/upload-artifact@v3 @@ -119,17 +122,24 @@ jobs: - name: Configure run: | - cmake -B build -D CMAKE_BUILD_TYPE=RelWithDebInfo + cmake \ + -B build \ + -D CMAKE_BUILD_TYPE=RelWithDebInfo \ + # EOL - name: Build run: | - cmake --build build -j $(sysctl -n hw.physicalcpu) --target package + cmake \ + --build build \ + -j $(sysctl -n hw.physicalcpu) \ + --target package \ + # EOL - name: Upload uses: actions/upload-artifact@v3 with: name: fallout2-ce-macos.dmg - path: build/_CPack_Packages/Darwin/DragNDrop/fallout2-ce/fallout2-ce.dmg + path: build/fallout2-ce.dmg retention-days: 7 windows: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3889610..3668281 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,7 +65,10 @@ jobs: - name: Build run: | - cmake --build build -j $(nproc) + cmake \ + --build build \ + -j $(nproc) \ + # EOL - name: Upload run: |