Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Nov 15, 2024
1 parent 4ff2a78 commit 39ab678
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release-check-directory.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release Check

on:
push:
branches: [main]
pull_request:

jobs:
release-check:
name: Check release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: GoReleaser Sentinel Cross
run: make sentinel-release-dry-run-cross
env:
RELEASE: false
GITHUB_TOKEN: ""

- name: GoReleaser Sentinel
run: make sentinel-release-dry-run
env:
RELEASE: false
GITHUB_TOKEN: ""
40 changes: 40 additions & 0 deletions .github/workflows/release-check-sentinel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release Check

on:
push:
branches: [main]
pull_request:

jobs:
release-check:
name: Check release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: GoReleaser Directory Cross
run: make directory-release-dry-run-cross
env:
RELEASE: false
GITHUB_TOKEN: ""

- name: GoReleaser Directory
run: make directory-release-dry-run
env:
RELEASE: false
GITHUB_TOKEN: ""
7 changes: 5 additions & 2 deletions .goreleaser-directory-cross.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,30 +127,33 @@ release:

archives:
- id: w/version
allow_different_binary_count: true
builds:
- directory_api_darwin
- directory_indexer_darwin
- directory_darwin_all
- directory_api_linux_arm64
- directory_indexer_linux_arm64
- directory_darwin_all
name_template: "directory_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if eq .Env.BUILD_TAG \"testnet\" }}-testnet{{ end }}"
wrap_in_directory: false
format: zip
files:
- none*
- id: wo/version
allow_different_binary_count: true
builds:
- directory_api_darwin
- directory_indexer_darwin
- directory_darwin_all
- directory_api_linux_arm64
- directory_indexer_linux_arm64
- directory_darwin_all
name_template: "directory_{{ .Os }}_{{ .Arch }}{{ if eq .Env.BUILD_TAG \"testnet\" }}_testnet{{ end }}"
wrap_in_directory: false
format: zip
files:
- none*
- id: binary
allow_different_binary_count: true
builds:
- directory_api_darwin
- directory_indexer_darwin
Expand Down

0 comments on commit 39ab678

Please sign in to comment.