Skip to content

Commit fe13dcd

Browse files
mirkoCrobumirkoCrobu
authored andcommitted
wqMerge remote-tracking branch 'origin/main' into feat/493_enhance_cli_level_logs
2 parents 4e56c7c + 54774d4 commit fe13dcd

File tree

407 files changed

+7054
-4903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

407 files changed

+7054
-4903
lines changed

.github/workflows/go-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
env:
10-
GO_VERSION: "1.24.5"
10+
GO_VERSION: "1.25.0"
1111

1212
jobs:
1313
go-test-orchestrator:
@@ -28,7 +28,7 @@ jobs:
2828
repo-token: ${{ secrets.GITHUB_TOKEN }}
2929

3030
- name: Set up Go
31-
uses: actions/setup-go@v4
31+
uses: actions/setup-go@v5
3232
with:
3333
go-version: ${{ env.GO_VERSION }}
3434

@@ -58,7 +58,7 @@ jobs:
5858
repo-token: ${{ secrets.GITHUB_TOKEN }}
5959

6060
- name: Set up Go
61-
uses: actions/setup-go@v4
61+
uses: actions/setup-go@v5
6262
with:
6363
go-version: ${{ env.GO_VERSION }}
6464

.github/workflows/openapi-spec.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
description: "Branch to compare against (used in manual runs)"
1212
required: false
1313
default: "main"
14+
env:
15+
GO_VERSION: "1.25.0"
1416

1517
jobs:
1618
oasdiff:
@@ -26,7 +28,7 @@ jobs:
2628
- name: Set up Go
2729
uses: actions/setup-go@v5
2830
with:
29-
go-version: "1.24"
31+
go-version: ${{ env.GO_VERSION }}
3032

3133
- name: Install oasdiff
3234
run: go install github.com/oasdiff/oasdiff@latest

.github/workflows/release-remoteocd.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "remoteocd-*" # Trigger on all tags
77

88
env:
9-
GO_VERSION: "1.24"
9+
GO_VERSION: "1.25.0"
1010
PROJECT_NAME: "remoteocd"
1111
GITHUB_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }}
1212
GITHUB_USERNAME: ArduinoBot
@@ -15,8 +15,16 @@ jobs:
1515
build:
1616
strategy:
1717
matrix:
18-
os: [linux, darwin, windows]
18+
os: [linux, darwin]
1919
arch: [amd64, arm64]
20+
ext: [""]
21+
include:
22+
- os: windows
23+
arch: amd64
24+
ext: .exe
25+
- os: windows
26+
arch: arm64
27+
ext: .exe
2028

2129
runs-on: ubuntu-22.04
2230
steps:
@@ -27,6 +35,7 @@ jobs:
2735
VERSION="${TAG_NAME#remoteocd-}" # Remove 'remoteocd-' prefix
2836
echo "VERSION=${VERSION}" >> $GITHUB_ENV
2937
echo "PACKAGE_NAME=${{ env.PROJECT_NAME }}-${VERSION}-${{ matrix.os }}-${{ matrix.arch }}" >> $GITHUB_ENV
38+
echo "BINARY_NAME=${{ env.PROJECT_NAME }}${{ matrix.ext }}" >> $GITHUB_ENV
3039
env:
3140
GITHUB_REF: ${{ github.ref }}
3241

@@ -42,7 +51,7 @@ jobs:
4251
- name: Set up Go
4352
uses: actions/setup-go@v5
4453
with:
45-
go-version: 1.24
54+
go-version: ${{ env.GO_VERSION }}
4655

4756
- name: Build Binary
4857
env:
@@ -51,7 +60,7 @@ jobs:
5160
run: |
5261
mkdir -p build/${{ env.PACKAGE_NAME }}
5362
go build -v -ldflags "-X 'main.Version=${{ env.VERSION }}'" \
54-
-o ./build/${{ env.PACKAGE_NAME }}/${{ env.PROJECT_NAME }}\
63+
-o ./build/${{ env.PACKAGE_NAME }}/${{ env.BINARY_NAME}}\
5564
./cmd/remoteocd
5665
5766
- name: Prepare Build Artifacts [windows]
@@ -63,7 +72,6 @@ jobs:
6372
- name: Prepare Build Artifacts [!windows]
6473
if: ${{ matrix.os != 'windows' }}
6574
run: |
66-
chmod +x ./build/${{ env.PACKAGE_NAME }}/${{ env.PROJECT_NAME }}
6775
tar -czf ./build/${{ env.PACKAGE_NAME}}.tar.gz -C ./build ${{ env.PACKAGE_NAME }}
6876
rm -r ./build/${{ env.PACKAGE_NAME }}
6977

.github/workflows/release.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "!releaser-*" # Exclude releaser tags
99

1010
env:
11-
GO_VERSION: "1.24"
11+
GO_VERSION: "1.25.0"
1212
PROJECT_NAME: "arduino-app-cli"
1313
GITHUB_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }}
1414
GITHUB_USERNAME: ArduinoBot
@@ -17,13 +17,11 @@ jobs:
1717
build:
1818
strategy:
1919
matrix:
20-
os: [ubuntu-22.04, macos-13]
20+
os: [ubuntu-22.04]
2121
arch: [amd64, arm64]
2222
include:
2323
- os: ubuntu-22.04
2424
platform-name: linux
25-
- os: macos-13
26-
platform-name: macos
2725

2826
runs-on: ${{ matrix.os }}
2927

@@ -45,7 +43,7 @@ jobs:
4543
- name: Set up Go
4644
uses: actions/setup-go@v5
4745
with:
48-
go-version: 1.24
46+
go-version: ${{ env.GO_VERSION }}
4947

5048
- name: Install Task
5149
uses: arduino/setup-task@v2
@@ -57,23 +55,18 @@ jobs:
5755
env:
5856
GOARCH: ${{ matrix.arch }}
5957
run: |
60-
if [[ "${{ matrix.platform-name }}" == "macos" ]]; then
61-
export CGO_ENABLED=1
62-
export MACOSX_DEPLOYMENT_TARGET=10.15
63-
else
64-
export CGO_ENABLED=0
65-
fi
58+
export CGO_ENABLED=0
6659
6760
mkdir -p build
68-
go build -v -ldflags "-X 'main.Version=${TAG_VERSION}'" -o ./build/${{ env.PROJECT_NAME }} ./cmd/arduino-app-cli
61+
go build -v -ldflags "-s -w -X 'main.Version=${TAG_VERSION}'" -o ./build/${{ env.PROJECT_NAME }} ./cmd/arduino-app-cli
6962
chmod +x ./build/${{ env.PROJECT_NAME }}
7063
tar -czvf ./build/${{ env.PROJECT_NAME }}-${TAG_VERSION}-${{ matrix.platform-name }}-${{ matrix.arch }}.tar.gz -C ./build ${{ env.PROJECT_NAME }}
7164
rm ./build/${{ env.PROJECT_NAME }}
7265
7366
- name: Build deb
7467
if: matrix.platform-name == 'linux'
7568
run: |
76-
task build-deb VERSION=${TAG_VERSION} ARCH=${{ matrix.arch }}
69+
task build-deb VERSION=${TAG_VERSION} ARCH=${{ matrix.arch }} RELEASE="true"
7770
7871
- name: Create Github Release and upload artifacts
7972
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)