Skip to content

Commit

Permalink
Rename artifacts (#50)
Browse files Browse the repository at this point in the history
* Rename artifacts

Artifacts are currently all named build-Debug and build-Release. Include the platform in the name.
  • Loading branch information
JeodC authored Apr 17, 2024
1 parent 6151095 commit 4e285a7
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,29 @@ jobs:
build:
strategy:
fail-fast: false

matrix:
os: [{runner: windows-latest, preset: win}, {runner: macos-latest, preset: mac}]
build_type: [Debug, Release]

runs-on: ${{ matrix.os.runner }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Install macOS dependencies
if: ${{ matrix.os.preset == 'mac' }}
run: |
# Install packages from Homebrew
brew bundle install
- name: Install macOS dependencies
if: ${{ matrix.os.preset == 'mac' }}
run: |
# Install packages from Homebrew
brew bundle install
- name: Configure CMake
run: cmake --preset ${{matrix.os.preset}} -B ${{github.workspace}}/build
- name: Configure CMake
run: cmake --preset ${{ matrix.os.preset }} -B ${{ github.workspace }}/build

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.build_type }}

- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: build_${{matrix.build_type}}
path: ${{github.workspace}}/build/Descent3/${{matrix.build_type}}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build_${{ matrix.os.preset }}_${{ matrix.build_type }}
path: ${{ github.workspace }}/build/Descent3/${{ matrix.build_type }}

0 comments on commit 4e285a7

Please sign in to comment.