chore(actions): upgrade actions to latest #219
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
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
name: Development | |
jobs: | |
build: | |
name: Build & Upload | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "1.22" # The Go version to download (if necessary) and use. | |
- run: go version | |
- run: make build-linux | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sc-linux | |
path: sc-linux | |
- run: make build-mac | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sc-mac | |
path: sc-mac | |
- run: make build-mac-arm | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sc-mac-arm | |
path: sc-mac-arm | |
- run: make build-windows | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sc-win | |
path: sc-win.exe | |
- run: make build-linux-arm | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sc-rpi | |
path: sc-rpi | |
- name: Test CLI | |
run: | | |
./sc-linux ls "Fusion" | |