-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from imjasonh/windows
update use-action for Windows
- Loading branch information
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,47 @@ | ||
name: Use Action | ||
|
||
on: | ||
pull_request: | ||
branches: ['main'] | ||
push: | ||
branches: ['main'] | ||
|
||
jobs: | ||
use-action: | ||
name: Use Action | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest] | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
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) | ||
run: | | ||
sudo rm /usr/local/bin/crane # Uninstall previous versions. | ||
rm $(which crane) # Uninstall previous versions. | ||
crane version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters