Skip to content

Commit 58a4f43

Browse files
committed
Refs #23667: Solve issues with permissions
Signed-off-by: cferreiragonz <[email protected]>
1 parent cd162cc commit 58a4f43

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/reusable-mac-ci.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
- name: Upload build artifacts
147147
uses: eProsima/eProsima-CI/external/upload-artifact@v0
148148
with:
149-
name: fastdds_build_${{ inputs.label }}_${{ matrix.vs-toolset }}
149+
name: fastdds_build_${{ inputs.label }}
150150
path: ${{ github.workspace }}
151151

152152
fastdds_test:
@@ -163,20 +163,13 @@ jobs:
163163
- name: Download build artifacts
164164
uses: eProsima/eProsima-CI/external/download-artifact@v0
165165
with:
166-
name: fastdds_build_${{ inputs.label }}_${{ matrix.vs-toolset }}
166+
name: fastdds_build_${{ inputs.label }}
167167
path: ${{ github.workspace }}
168168

169-
- name: Set up hosts file for DNS testing
169+
- name: Fix permissions after downloading build artifacts
170170
run: |
171-
sudo echo "" | sudo tee -a /etc/hosts
172-
sudo echo "127.0.0.1 localhost.test" | sudo tee -a /etc/hosts
173-
sudo echo "::1 localhost.test" | sudo tee -a /etc/hosts
174-
sudo echo "154.56.134.194 www.eprosima.com.test" | sudo tee -a /etc/hosts
175-
sudo echo "216.58.215.164 www.acme.com.test" | sudo tee -a /etc/hosts
176-
sudo echo "2a00:1450:400e:803::2004 www.acme.com.test" | sudo tee -a /etc/hosts
177-
sudo echo "140.82.121.4 www.foo.com.test" | sudo tee -a /etc/hosts
178-
sudo echo "140.82.121.3 www.foo.com.test" | sudo tee -a /etc/hosts
179-
sudo echo "ff1e::ffff:efff:1 acme.org.test" | sudo tee -a /etc/hosts
171+
find ${{ github.workspace }}/build -type f -name "*" -exec chmod +x {} \;
172+
find ${{ github.workspace }}/install -type f -name "*" -exec chmod +x {} \;
180173
181174
- name: Install Fix Python version
182175
uses: eProsima/eProsima-CI/external/setup-python@v0
@@ -204,6 +197,18 @@ jobs:
204197
packages: vcstool xmlschema psutil
205198
upgrade: false
206199

200+
- name: Set up hosts file for DNS testing
201+
run: |
202+
sudo echo "" | sudo tee -a /etc/hosts
203+
sudo echo "127.0.0.1 localhost.test" | sudo tee -a /etc/hosts
204+
sudo echo "::1 localhost.test" | sudo tee -a /etc/hosts
205+
sudo echo "154.56.134.194 www.eprosima.com.test" | sudo tee -a /etc/hosts
206+
sudo echo "216.58.215.164 www.acme.com.test" | sudo tee -a /etc/hosts
207+
sudo echo "2a00:1450:400e:803::2004 www.acme.com.test" | sudo tee -a /etc/hosts
208+
sudo echo "140.82.121.4 www.foo.com.test" | sudo tee -a /etc/hosts
209+
sudo echo "140.82.121.3 www.foo.com.test" | sudo tee -a /etc/hosts
210+
sudo echo "ff1e::ffff:efff:1 acme.org.test" | sudo tee -a /etc/hosts
211+
207212
- name: Colcon test
208213
id: test
209214
uses: eProsima/eProsima-CI/multiplatform/colcon_test@v0

0 commit comments

Comments
 (0)