75
75
NO_CERT_INSTALL : " ask_certificates_install=CS" # linux
76
76
CHOICE_CERT_INSTALL : " ask_certificates_install=CC" # win,mac:(ff,chrome)
77
77
78
+ strategy :
79
+ matrix :
80
+ operating-system : [ubuntu-latest, windows-latest, macOS-latest]
81
+
82
+ include :
83
+ - operating-system :
84
+ ubuntu-latest :
85
+ bowsers :
86
+ - firefox
87
+ - chrome
88
+ install-builder-name : linux
89
+ executable-path : artifacts/linux-386/
90
+ - operating-system :
91
+ windows-latest :
92
+ - firefox
93
+ - chrome
94
+ - edge
95
+ install-builder-name : windows
96
+ executable-path : artifacts/windows/
97
+ - operating-system :
98
+ macOS-latest :
99
+ - firefox
100
+ - chrome
101
+ - safari
102
+ install-builder-name : osx
103
+ executable-path : ' ' # TBD
104
+
78
105
container :
79
106
image : floydpink/ubuntu-install-builder:latest
80
107
@@ -84,30 +111,30 @@ jobs:
84
111
uses : actions/checkout@v2
85
112
with :
86
113
repository : ' bcmi-labs/arduino-create-agent-installer'
87
- token : ${{ secrets.PAT_TEMP }}
114
+ token : ${{ secrets.PAT_TEMP }} # use token organization instead
88
115
89
116
- name : Download artifacts
90
117
uses : actions/download-artifact@v2
91
118
with :
92
- name : arduino-create-agent-ubuntu-latest
93
- path : artifacts/linux-386/
119
+ name : arduino-create-agent-${{ matrix.operating-system }}
120
+ path : ${{ matrix.executable-path }}
94
121
95
122
- name : Make executable
96
- run : chmod +x artifacts/linux-386/ arduino-create-agent
123
+ run : chmod +x ${{ matrix.executable-path }} arduino-create-agent-${{ matrix.operating-system }}
97
124
98
125
- name : Rename executable to Arduino_Create_Bridge
99
- run : mv artifacts/linux-386/ arduino-create-agent artifacts/linux-386 /Arduino_Create_Bridge
126
+ run : mv ${{ matrix.executable-path }} arduino-create-agent-${{ matrix.operating-system }} ${{ matrix.executable-path }} /Arduino_Create_Bridge
100
127
101
128
- name : Save license to file
102
129
run : echo "${{ secrets.INSTALLER_LICENSE }}" > /tmp/license.xml
103
130
104
131
- name : Launch Bitrock installbuilder-20
105
- run : /opt/installbuilder-20.3.0/bin/builder build installer.xml linux -- verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} ${{ env.NO_CERT_INSTALL }}
132
+ run : /opt/installbuilder-20.3.0/bin/builder build installer.xml ${{ matrix.install-builder-name }} -- verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} ${{ env.NO_CERT_INSTALL }} # TODO: fix certs install
106
133
107
134
- name : Upload artifacts
108
135
uses : actions/upload-artifact@v2
109
136
with :
110
- name : ArduinoCreateAgent-linux
137
+ name : ArduinoCreateAgent-${{ matrix.install-builder-name }}
111
138
path : ArduinoCreateAgent*
112
139
if-no-files-found : error
113
140
0 commit comments