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 : ubuntu-latest
84
+ bowsers :
85
+ - firefox
86
+ - chrome
87
+ install-builder-name : linux
88
+ executable-path : artifacts/linux-386/
89
+ - operating-system : windows-latest
90
+ browsers :
91
+ - firefox
92
+ - chrome
93
+ - edge
94
+ install-builder-name : windows
95
+ executable-path : artifacts/windows/
96
+ - operating-system : macOS-latest
97
+ bowsers :
98
+ - firefox
99
+ - chrome
100
+ - safari
101
+ install-builder-name : osx
102
+ executable-path : ' ' # TBD
103
+
78
104
container :
79
105
image : floydpink/ubuntu-install-builder:latest
80
106
@@ -84,30 +110,30 @@ jobs:
84
110
uses : actions/checkout@v2
85
111
with :
86
112
repository : ' bcmi-labs/arduino-create-agent-installer'
87
- token : ${{ secrets.PAT_TEMP }}
113
+ token : ${{ secrets.PAT_TEMP }} # use token organization instead
88
114
89
115
- name : Download artifacts
90
116
uses : actions/download-artifact@v2
91
117
with :
92
- name : arduino-create-agent-ubuntu-latest
93
- path : artifacts/linux-386/
118
+ name : arduino-create-agent-${{ matrix.operating-system }}
119
+ path : ${{ matrix.executable-path }}
94
120
95
121
- name : Make executable
96
- run : chmod +x artifacts/linux-386/ arduino-create-agent
122
+ run : chmod +x ${{ matrix.executable-path }} arduino-create-agent
97
123
98
124
- name : Rename executable to Arduino_Create_Bridge
99
- run : mv artifacts/linux-386/ arduino-create-agent artifacts/linux-386 /Arduino_Create_Bridge
125
+ run : mv ${{ matrix.executable-path }} arduino-create-agent ${{ matrix.executable-path }} /Arduino_Create_Bridge
100
126
101
127
- name : Save license to file
102
128
run : echo "${{ secrets.INSTALLER_LICENSE }}" > /tmp/license.xml
103
129
104
130
- 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 }}
131
+ 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
132
107
133
- name : Upload artifacts
108
134
uses : actions/upload-artifact@v2
109
135
with :
110
- name : ArduinoCreateAgent-linux
136
+ name : ArduinoCreateAgent-${{ matrix.install-builder-name }}
111
137
path : ArduinoCreateAgent*
112
138
if-no-files-found : error
113
139
0 commit comments