diff --git a/.github/workflows/ci-examples.yaml b/.github/workflows/ci-examples.yaml new file mode 100644 index 0000000..9dc2ba0 --- /dev/null +++ b/.github/workflows/ci-examples.yaml @@ -0,0 +1,29 @@ +name: Build Examples + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +defaults: + run: + working-directory: ./Examples/HummingbirdDemo + +jobs: + ci: + name: Build Examples + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- + + - name: Build + run: swift build diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6738546..600d52c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,13 +14,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/cache@v3 - with: - path: .build - key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} - restore-keys: | - ${{ runner.os }}-spm- - - name: Build run: swift build --build-tests diff --git a/Examples/HummingbirdDemo/Package.swift b/Examples/HummingbirdDemo/Package.swift index fbb230e..a2173bb 100644 --- a/Examples/HummingbirdDemo/Package.swift +++ b/Examples/HummingbirdDemo/Package.swift @@ -19,8 +19,7 @@ let package = Package( dependencies: [ .product(name: "Hummingbird", package: "hummingbird"), .product(name: "Elementary", package: "Elementary"), - ], - path: "Sources" + ] ), ] ) diff --git a/Examples/HummingbirdDemo/Sources/App/BrowserSync.swift b/Examples/HummingbirdDemo/Sources/App/BrowserSync.swift index 37be771..7ba7964 100644 --- a/Examples/HummingbirdDemo/Sources/App/BrowserSync.swift +++ b/Examples/HummingbirdDemo/Sources/App/BrowserSync.swift @@ -3,7 +3,7 @@ import Foundation #if DEBUG func browserSyncReload() { let p = Process() - p.executableURL = URL(filePath: "/bin/sh") + p.executableURL = URL(string: "file:///bin/sh") p.arguments = ["-c", "browser-sync reload"] do { try p.run()