Skip to content

Commit

Permalink
Format workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbatalov committed Jul 26, 2022
1 parent 6a6d691 commit 42376b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/Build.yml → .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ jobs:
- name: Build
run: |
cmake --build build -j $(nproc)
cmake \
--build build \
-j $(nproc) \
# EOL
- name: Upload
run: |
Expand Down

0 comments on commit 42376b7

Please sign in to comment.