Skip to content

Commit 79ffc2c

Browse files
committed
wip: don't cd to example directory
1 parent 6befa29 commit 79ffc2c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ jobs:
6262
strategy:
6363
matrix:
6464
example:
65-
- HelloWorldVapor
66-
- HelloWorldHummingbird
65+
- Examples/HelloWorldVapor
66+
- Examples/HelloWorldHummingbird
6767
steps:
6868
- name: Checkout repository
6969
uses: actions/checkout@v4
@@ -82,9 +82,10 @@ jobs:
8282
8383
- name: Build the example
8484
run: |
85-
cd Examples/${{ matrix.example }}
86-
sed -i'.bak' -e '/swift-container-plugin/ s/(url:.*),/(path: "..\/.."),/' Package.swift
85+
sed -i'.bak' -e "/swift-container-plugin/ s@(url:.*),@(path: \"$PWD\"),@" ${{ matrix.example }}/Package.swift # Use plugin from this checkout
86+
cat ${{ matrix.example }}/Package.swift
8787
swift package \
88+
--package-path ${{ matrix.example }} \
8889
--swift-sdk x86_64-swift-linux-musl \
8990
--allow-network-connections all \
9091
build-container-image \

0 commit comments

Comments
 (0)