Skip to content

Commit

Permalink
update use-action for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <[email protected]>
  • Loading branch information
imjasonh committed Jun 11, 2024
1 parent 00c9e93 commit c666ff1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/use-action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Use Action

on:
pull_request:
branches: ['main']
push:
branches: ['main']

Expand All @@ -9,30 +11,30 @@ jobs:
name: Use Action
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.20.x
- uses: actions/checkout@v2
go-version: 1.21.x
- uses: actions/checkout@v4

- uses: imjasonh/setup-crane@main
- uses: ./
- run: |
crane digest ubuntu
crane manifest ubuntu | jq
crane copy ubuntu ghcr.io/${{ github.repository }}/ubuntu-copy
- name: Install old release
uses: imjasonh/setup-crane@main
uses: ./
with:
version: v0.12.0
- name: Check installed version
run: crane version | grep 0.12.0

- name: Install from tip
uses: imjasonh/setup-crane@main
uses: ./
with:
version: tip
- name: Check installed version (tip)
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ runs:
if [[ $os == "macOS" ]]; then
os="Darwin"
fi
arch=$(uname -m)
if [[ "$arch" =~ (aarch64|arm64) ]] ; then
arch=arm64
fi
fi
if [[ ! -z ${tag} ]]; then
echo "Installing crane @ ${tag} for ${os} on ${arch}"
Expand Down

0 comments on commit c666ff1

Please sign in to comment.