Skip to content

Commit

Permalink
Add support for creating snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Jan 3, 2022
1 parent 6b45612 commit d228eec
Showing 1 changed file with 90 additions and 3 deletions.
93 changes: 90 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,101 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
snapshot:
name: snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v2
with:
go-version: "1.17.x"

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --snapshot --rm-dist

- name: Capture x86_64 (64-bit) Linux binary
uses: actions/upload-artifact@v2
with:
name: act-linux-amd64
path: dist/act_linux_amd64/act

- name: Capture i386 (32-bit) Linux binary
uses: actions/upload-artifact@v2
with:
name: act-linux-i386
path: dist/act_linux_386/act

- name: Capture arm64 (64-bit) Linux binary
uses: actions/upload-artifact@v2
with:
name: act-linux-arm64
path: dist/act_linux_arm64/act

- name: Capture armv6 (32-bit) Linux binary
uses: actions/upload-artifact@v2
with:
name: act-linux-armv6
path: dist/act_linux_arm_6/act

- name: Capture armv7 (32-bit) Linux binary
uses: actions/upload-artifact@v2
with:
name: act-linux-armv7
path: dist/act_linux_arm_7/act

- name: Capture x86_64 (64-bit) Windows binary
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v2
with:
name: act-windows-amd64
path: dist/act_windows_amd64/act.exe

- name: Capture i386 (32-bit) Windows binary
uses: actions/upload-artifact@v2
with:
name: act-windows-i386
path: dist/act_windows_386/act.exe

- name: Capture arm64 (64-bit) Windows binary
uses: actions/upload-artifact@v2
with:
name: act-windows-arm64
path: dist/act_windows_arm64/act.exe

- name: Capture armv7 (32-bit) Windows binary
uses: actions/upload-artifact@v2
with:
name: act-windows-armv7
path: dist/act_windows_arm_7/act.exe

- name: Capture x86_64 (64-bit) MacOS binary
uses: actions/upload-artifact@v2
with:
name: act-macos-amd64
path: dist/act_darwin_amd64/act

- name: Capture arm64 (64-bit) MacOS binary
uses: actions/upload-artifact@v2
with:
name: act-macos-arm64
path: dist/act_darwin_arm64/act

test:
name: Test auto-doc
runs-on: ${{ matrix.platform }}
Expand Down

0 comments on commit d228eec

Please sign in to comment.