Skip to content

Commit 52a45e6

Browse files
committed
matrix introduced
1 parent 1527a11 commit 52a45e6

File tree

1 file changed

+34
-7
lines changed

1 file changed

+34
-7
lines changed

.github/workflows/release.yml

+34-7
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,33 @@ jobs:
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:
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+
78105
container:
79106
image: floydpink/ubuntu-install-builder:latest
80107

@@ -84,30 +111,30 @@ jobs:
84111
uses: actions/checkout@v2
85112
with:
86113
repository: 'bcmi-labs/arduino-create-agent-installer'
87-
token: ${{ secrets.PAT_TEMP }}
114+
token: ${{ secrets.PAT_TEMP }} # use token organization instead
88115

89116
- name: Download artifacts
90117
uses: actions/download-artifact@v2
91118
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 }}
94121

95122
- 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 }}
97124

98125
- 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
100127

101128
- name: Save license to file
102129
run: echo "${{ secrets.INSTALLER_LICENSE }}" > /tmp/license.xml
103130

104131
- 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
106133

107134
- name: Upload artifacts
108135
uses: actions/upload-artifact@v2
109136
with:
110-
name: ArduinoCreateAgent-linux
137+
name: ArduinoCreateAgent-${{ matrix.install-builder-name }}
111138
path: ArduinoCreateAgent*
112139
if-no-files-found: error
113140

0 commit comments

Comments
 (0)