7575 NO_CERT_INSTALL : " ask_certificates_install=CS" # linux
7676 CHOICE_CERT_INSTALL : " ask_certificates_install=CC" # win,mac:(ff,chrome)
7777
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+
78104 container :
79105 image : floydpink/ubuntu-install-builder:latest
80106
@@ -84,30 +110,30 @@ jobs:
84110 uses : actions/checkout@v2
85111 with :
86112 repository : ' bcmi-labs/arduino-create-agent-installer'
87- token : ${{ secrets.PAT_TEMP }}
113+ token : ${{ secrets.PAT_TEMP }} # use token organization instead
88114
89115 - name : Download artifacts
90116 uses : actions/download-artifact@v2
91117 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 }}
94120
95121 - name : Make executable
96- run : chmod +x artifacts/linux-386/ arduino-create-agent
122+ run : chmod +x ${{ matrix.executable-path }} arduino-create-agent
97123
98124 - 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
100126
101127 - name : Save license to file
102128 run : echo "${{ secrets.INSTALLER_LICENSE }}" > /tmp/license.xml
103129
104130 - 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
106132
107133 - name : Upload artifacts
108134 uses : actions/upload-artifact@v2
109135 with :
110- name : ArduinoCreateAgent-linux
136+ name : ArduinoCreateAgent-${{ matrix.install-builder-name }}
111137 path : ArduinoCreateAgent*
112138 if-no-files-found : error
113139
0 commit comments