Skip to content

Commit

Permalink
Update dependencies (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: ApodiniBot <[email protected]>
Co-authored-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
3 people authored Apr 15, 2022
1 parent 76e3fdb commit b68c2dd
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 184 deletions.
89 changes: 0 additions & 89 deletions .github/workflows/build-and-test.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# This source file is part of the Apodini open source project
#
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]>
#
# SPDX-License-Identifier: MIT
#

name: Build

on:
push:
branches:
- develop
workflow_dispatch:

jobs:
build_and_test:
name: Build and Test
uses: Apodini/.github/.github/workflows/build-and-test.yml@v1
with:
packagename: SwiftDeviceDiscovery
aptgetdependencies: libavahi-compat-libdnssd-dev
yumdependencies: avahi avahi-compat-libdns_sd avahi-compat-libdns_sd-devel
28 changes: 28 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# This source file is part of the Apodini open source project
#
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]>
#
# SPDX-License-Identifier: MIT
#

name: Pull Request

on:
pull_request:
workflow_dispatch:

jobs:
build_and_test:
name: Build and Test
uses: Apodini/.github/.github/workflows/build-and-test.yml@v1
with:
packagename: SwiftDeviceDiscovery
aptgetdependencies: libavahi-compat-libdnssd-dev
yumdependencies: avahi avahi-compat-libdns_sd avahi-compat-libdns_sd-devel
reuse_action:
name: REUSE Compliance Check
uses: Apodini/.github/.github/workflows/reuse.yml@v1
swiftlint:
name: SwiftLint
uses: Apodini/.github/.github/workflows/swiftlint.yml@v1
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# This source file is part of the Apodini open source project
#
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]>
#
# SPDX-License-Identifier: MIT
#

name: Release

on:
release:
types: [published]
workflow_dispatch:

jobs:
docs:
name: Generate Docs
uses: Apodini/.github/.github/workflows/docs.yml@v1
with:
targetname: SwiftDeviceDiscovery
27 changes: 0 additions & 27 deletions .github/workflows/reuseaction.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/swiftlint.yml

This file was deleted.

35 changes: 8 additions & 27 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,21 @@
#
# This source file is part of the Apodini Template open source project
# This source file is part of the Apodini open source project
#
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]>
#
# SPDX-License-Identifier: MIT
#

name: Swift Package Update
name: Update

on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:

jobs:
createPR:
name: Create Pull Request
container:
image: swiftlang/swift:nightly-5.5-focal
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check Swift version
run: swift --version
- name: Update Swift Packages
run: swift package update
- uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
commit-message: Update dependencies
title: Update dependencies
body: Update the Swift Package dependencies.
delete-branch: true
base: develop
branch: bots/update-dependencies
assignees: ApodiniBot
committer: ApodiniBot <[email protected]>
author: ApodiniBot <[email protected]>
reviewers: hendesi
spm_update:
name: Swift Package Update
uses: Apodini/.github/.github/workflows/spm-update.yml@v1
secrets:
token: ${{ secrets.ACCESS_TOKEN }}
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"repositoryURL": "https://github.com/apple/swift-crypto.git",
"state": {
"branch": null,
"revision": "bd5abc2a123349b08a345d7d375db2a5d845ed35",
"version": "2.0.2"
"revision": "067254c79435de759aeef4a6a03e43d087d61312",
"version": "2.0.5"
}
},
{
Expand All @@ -42,8 +42,8 @@
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "37e7a33de45bac894c0b08b56a2f755ebe4884e6",
"version": "2.35.0"
"revision": "d6e3762e0a5f7ede652559f53623baf11006e17c",
"version": "2.39.0"
}
},
{
Expand Down
9 changes: 3 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,22 @@
import PackageDescription

let package = Package(
name: "swift-device-discovery",
name: "SwiftDeviceDiscovery",
platforms: [.macOS(.v11)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "SwiftDeviceDiscovery",
targets: ["DeviceDiscovery"]),
targets: ["DeviceDiscovery"]
),
.executable(name: "discovery-executable", targets: ["discovery-executable"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.4.0"),
.package(url: "https://github.com/apple/swift-nio-ssh", from: "0.3.0"),
.package(url: "https://github.com/Bouke/NetService.git", from: "0.8.1")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "DeviceDiscovery",
dependencies: [
Expand Down

0 comments on commit b68c2dd

Please sign in to comment.