Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sammcj committed May 31, 2024
1 parent bd52c0b commit 9488f46
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@ jobs:
# Build
- name: Build macOS ARM64
run: |
GOOS=darwin GOARCH=arm64 go build -o main.go -o gollama-macos-arm64${{ github.ref == 'refs/heads/dev' && '-dev' }}
GOOS=darwin GOARCH=arm64 go build -o main.go -o gollama-macos-arm64
echo "macOS ARM64 build completed" >> "$GITHUB_STEP_SUMMARY"
- name: Build Linux
run: |
GOOS=linux GOARCH=amd64 go build -o main.go -o gollama-linux-amd64${{ github.ref == 'refs/heads/dev' && '-dev' }}
GOOS=linux GOARCH=arm64 go build -o main.go -o gollama-linux-arm64${{ github.ref == 'refs/heads/dev' && '-dev' }}
GOOS=linux GOARCH=amd64 go build -o main.go -o gollama-linux-amd64
GOOS=linux GOARCH=arm64 go build -o main.go -o gollama-linux-arm64
echo "Linux build completed" >> "$GITHUB_STEP_SUMMARY"
- name: Upload artefacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
with:
name: gollama
path: |
gollama-macos-arm64${{ github.ref == 'refs/heads/dev' && '-dev' }}
gollama-linux-amd64${{ github.ref == 'refs/heads/dev' && '-dev' }}
gollama-linux-arm64${{ github.ref == 'refs/heads/dev' && '-dev' }}
gollama-macos-arm64
gollama-linux-amd64
gollama-linux-arm64
# Bump version
- name: Bump version and push tag
Expand All @@ -82,8 +82,8 @@ jobs:
allowUpdates: true
prerelease: ${{ startsWith(github.ref, 'refs/heads/dev') }}
artifacts: |
gollama-macos-arm64${{ github.ref == 'refs/heads/dev' && '-dev' }}
gollama-linux-amd64${{ github.ref == 'refs/heads/dev' && '-dev' }}
gollama-linux-arm64${{ github.ref == 'refs/heads/dev' && '-dev' }}
gollama-macos-arm64
gollama-linux-amd64
gollama-linux-arm64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9488f46

Please sign in to comment.