Skip to content

Commit

Permalink
ci: Refactor build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Jan 18, 2025
1 parent 3489c91 commit 6ca999e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Save built executable as artifact
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: postgrest-linux-static-x86-64
name: postgrest-${{ runner.os }}-static-${{ runner.arch }}
path: result/bin/postgrest
if-no-files-found: error

Expand All @@ -53,7 +53,7 @@ jobs:
- name: Save built Docker image as artifact
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: postgrest-docker-x86-64
name: postgrest-docker-${{ runner.arch }}
path: postgrest-docker.tar.gz
if-no-files-found: error

Expand Down Expand Up @@ -93,7 +93,6 @@ jobs:
~/.stack/pantry
~/.stack/snapshots
~/.stack/stack.sqlite3
artifact: postgrest-ubuntu-aarch64
deps: sudo apt-get update && sudo apt-get install libpq-dev

- name: MacOS
Expand All @@ -102,7 +101,6 @@ jobs:
~/.stack/pantry
~/.stack/snapshots
~/.stack/stack.sqlite3
artifact: postgrest-macos-aarch64
- name: Windows
runs-on: windows-2022
Expand All @@ -114,7 +112,6 @@ jobs:
~\AppData\Roaming\stack\stack.sqlite3
~\AppData\Local\Programs\stack\stack.sqlite3
deps: Add-Content $env:GITHUB_PATH $env:PGBIN
artifact: postgrest-windows-x86-64

name: Stack - ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
Expand Down Expand Up @@ -150,7 +147,7 @@ jobs:
- name: Save built executable as artifact
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: ${{ matrix.artifact }}
name: postgrest-${{ runner.os }}-${{ runner.arch }}
path: |
result/postgrest
result/postgrest.exe
Expand Down

0 comments on commit 6ca999e

Please sign in to comment.