Skip to content

Commit

Permalink
upload artifacts on non release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergodart committed Oct 30, 2024
1 parent 3518571 commit 80cb694
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,29 @@ jobs:

- name: Tar.gz linux|mac files
run: tar -zcvf signls_${{ github.ref_name }}_${{ runner.os}}.tar.gz LICENSE -C bin signls
if: ${{ github.ref_type == 'tag'&& !startsWith(matrix.os, 'windows') }}
if: ${{ !startsWith(matrix.os, 'windows') }}

- name: Zip windows files
shell: pwsh
run: |
Compress-Archive bin\signls.exe signls_${{ github.ref_name }}_${{ runner.os}}.zip
if: ${{ github.ref_type == 'tag'&& startsWith(matrix.os, 'windows') }}
if: ${{ startsWith(matrix.os, 'windows') }}

- name: Upload linux|mac artifact
uses: actions/upload-artifact@v4
with:
name: signls_${{ github.sha }}_${{ runner.os}}
path: signls_${{ github.ref_name }}_${{ runner.os}}.tar.gz
if-no-files-found: error
if: ${{ github.ref_type == 'tag' && !startsWith(matrix.os, 'windows') }}
if: ${{ !startsWith(matrix.os, 'windows') }}

- name: Upload windows artifact
uses: actions/upload-artifact@v4
with:
name: signls_${{ github.sha }}_${{ runner.os}}
path: signls_${{ github.ref_name }}_${{ runner.os}}.zip
if-no-files-found: error
if: ${{ github.ref_type == 'tag' && startsWith(matrix.os, 'windows') }}
if: ${{ startsWith(matrix.os, 'windows') }}

release:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion midi/midi.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type midi struct {
// New creates a new midi. It retrieves the connected midi
// devices and starts a new goroutine for each of them.
func New() (Midi, error) {
virtualDevice, err := drivers.Get().(*rtmidi.Driver).OpenVirtualOut("no output device")
virtualDevice, err := drivers.Get().(*rtmidi.Driver).OpenVirtualOut("default")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 80cb694

Please sign in to comment.