-
Notifications
You must be signed in to change notification settings - Fork 3
chore: add ci workflows #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
54390af
feat: add GitHub Actions workflow for releasing arduino-app-cli
dido18 e1e5431
Merge branch 'main' into add-release-branch
dido18 93426e1
feat: add GitHub Actions workflow for releasing arduino-app-cli
dido18 d371673
fix: specify task name for building deb package in release workflow
dido18 7b12a8d
remove unused stuff
lucarin91 28f8053
Revert "remove unused stuff"
lucarin91 7da993e
remove binary build
lucarin91 6b36c28
fixup! remove binary build
lucarin91 12c9a93
Update .github/workflows/release.yml
lucarin91 f396c43
Update .github/workflows/release.yml
lucarin91 42518b0
Update .github/workflows/release.yml
lucarin91 5cee889
Merge remote-tracking branch 'origin/main' into add-release-branch
lucarin91 4c47ffa
remove task installation
lucarin91 efbde80
make dprint happy
lucarin91 d8afdc6
add test and checks workflows
lucarin91 da44a83
fix test workflow
lucarin91 6722a14
add pr template
lucarin91 3c35429
fixup! add pr template
lucarin91 e4c245e
fix e2e tests
lucarin91 940112c
update notice
lucarin91 1309cfc
refactor: remove GO_VERSION environment variable and use go.mod for v…
dido18 6ac0b8a
Merge remote-tracking branch 'origin/main' into add-release-branch
lucarin91 3e436dd
add gitignore
lucarin91 162a74c
update copyright notice flow
lucarin91 c6a786a
fix notice
lucarin91 83c8ce9
remove notices from copyright
lucarin91 e06d2b6
remove licence check
lucarin91 0d30574
make fmt happy
lucarin91 bab9e8d
fix deb copyright
lucarin91 8c28032
make formatter happy
lucarin91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| name: Release arduino-app-cli | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "*" # Trigger on all tags | ||
|
|
||
| env: | ||
| GO_VERSION: "1.25.1" | ||
| PROJECT_NAME: "arduino-app-cli" | ||
| GITHUB_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }} | ||
| GITHUB_USERNAME: ArduinoBot | ||
|
|
||
| jobs: | ||
| build: | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-22.04] | ||
| arch: [amd64, arm64] | ||
| include: | ||
| - os: ubuntu-22.04 | ||
| platform-name: linux | ||
lucarin91 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| steps: | ||
| - name: Set env vars | ||
| run: | | ||
| echo "TAG_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
| echo "creating tag ${TAG_VERSION}" | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Configure Git for private repo cloning | ||
| run: | | ||
| git config --global url."https://${{ env.GITHUB_USERNAME }}:${{ env.GITHUB_TOKEN }}@github.com".insteadOf "https://github.com" | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: ${{ env.GO_VERSION }} | ||
|
|
||
| - name: Install Task | ||
| uses: arduino/setup-task@v2 | ||
| with: | ||
| version: 3.x | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build deb | ||
| if: matrix.platform-name == 'linux' | ||
lucarin91 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| run: | | ||
| task build-deb:arduino-app-cli VERSION=${TAG_VERSION} ARCH=${{ matrix.arch }} RELEASE="true" | ||
lucarin91 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: Create Github Release and upload artifacts | ||
| uses: ncipollo/release-action@v1 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| draft: false | ||
| prerelease: true | ||
| artifacts: build/*.deb | ||
| allowUpdates: true | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.