Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 62b4d00

Browse files
committedNov 16, 2020
standardize test.yaml to release.yaml
1 parent 731d444 commit 62b4d00

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed
 

‎.github/workflows/test.yml

+28-7
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
- name: Install Go
2222
uses: actions/setup-go@v2
2323
with:
24-
go-version: "1.14"
24+
go-version: "1.15"
2525

26+
# dependencies used for compiling the GUI
2627
- name: Install Dependencies (Linux)
27-
# run: sudo apt-get install ninja-build
2828
run: sudo apt update && sudo apt install -y --no-install-recommends build-essential libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev
2929
if: matrix.operating-system == 'ubuntu-latest'
3030

@@ -38,29 +38,50 @@ jobs:
3838
shell: bash
3939

4040
- name: Install Taskfile
41-
uses: Arduino/actions/setup-taskfile@master
41+
uses: arduino/actions/setup-taskfile@master
4242
with:
43+
version: '3.x'
4344
repo-token: ${{ secrets.GITHUB_TOKEN }}
4445

4546
- name: Check the code is good
4647
run: task check
4748

49+
- name: Run unit tests
50+
run: task test-unit
51+
4852
- name: Build the Agent
4953
run: task build
5054
if: matrix.operating-system != 'windows-latest'
5155

56+
# build the agent without GUI support (no tray icon)
57+
- name: Build the Agent-cli
58+
run: task build-cli
59+
if: matrix.operating-system == 'ubuntu-latest'
60+
61+
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
62+
# rsrc will produce *.syso files that should get automatically recognized by go build command and linked into an executable.
63+
- name: Embed manifest in win binary
64+
run: |
65+
go get github.com/akavel/rsrc
66+
rsrc -arch 386 -manifest manifest.xml
67+
if: matrix.operating-system == 'windows-latest'
68+
69+
# building the agent for win requires a different task because of an extra flag
5270
- name: Build the Agent for win32
71+
env:
72+
GOARCH: 386 # 32bit architecture (for support)
73+
GO386: 387 # support old instruction sets without MMX (used in the Pentium 4) (will be deprecated in GO > 1.15 https://golang.org/doc/go1.15)
5374
run: task build-win32
5475
if: matrix.operating-system == 'windows-latest'
5576

56-
- name: Run unit tests
57-
run: task test-unit
58-
77+
# config.ini is required by the executable when it's run
5978
- name: Upload artifacts
6079
uses: actions/upload-artifact@v2
6180
with:
6281
name: arduino-create-agent-${{ matrix.operating-system }}
63-
path: arduino-create-agent*
82+
path: |
83+
arduino-create-agent*
84+
config.ini
6485
if-no-files-found: error
6586

6687
# - name: Send unit tests coverage to Codecov

0 commit comments

Comments
 (0)
Please sign in to comment.