Skip to content

Commit

Permalink
artifact output test
Browse files Browse the repository at this point in the history
  • Loading branch information
redmoogle committed May 18, 2024
1 parent 956f9cf commit bd94a85
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,29 @@ jobs:
- name: Publish DMCompiler
if: github.event_name == 'push'
run: dotnet publish DMCompiler -c Release -o output/DMCompiler_${{ matrix.os == 'windows-latest' && 'win-x64' || 'linux-x64' }}
- name: Clean logs
if: github.event_name == 'push'
run: |
python ./Tools/clean_logs.py output/DMCompiler_${{ matrix.os == 'windows-latest' && 'win-x64' || 'linux-x64' }}
python ./Tools/clean_logs.py output/OpenDreamServer_${{ matrix.os == 'windows-latest' && 'win-x64' || 'linux-x64' }}
- name: Gzip releases
if: github.event_name == 'push'
run: |
tar -czvf output/DMCompiler_${{ matrix.os == 'windows-latest' && 'win-x64' || 'linux-x64' }}.tar.gz -C output DMCompiler_${{ matrix.os == 'windows-latest' && 'win-x64' || 'linux-x64' }}
tar -czvf output/OpenDreamServer_${{ matrix.os == 'windows-latest' && 'win-x64' || 'linux-x64' }}.tar.gz -C output OpenDreamServer_${{ matrix.os == 'windows-latest' && 'win-x64' || 'linux-x64' }}
- name: Upload artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact/merge@v4
with:
name: build-${{ matrix.os }}
path: output/*.tar.gz
name: build-all
retention-days: 1
delete-merged: true
path: output/*.tar.gz

#clean:
# needs: build
# runs-on: ubuntu-latest
# - name: Clean logs
# if: github.event_name == 'push'
# run: |
# python ./Tools/clean_logs.py output/DMCompiler_${{ matrix.os == 'windows-latest' && 'win-x64' || 'linux-x64' }}
# python ./Tools/clean_logs.py output/OpenDreamServer_${{ matrix.os == 'windows-latest' && 'win-x64' || 'linux-x64' }}


release:
needs: build
Expand Down

0 comments on commit bd94a85

Please sign in to comment.