Skip to content

Commit

Permalink
swift5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
yukiny0811 committed Feb 2, 2024
1 parent 87c31a7 commit 5cb59a6
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 7 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Build macOS
run: set -o pipefail && xcodebuild -scheme SimpleSimdSwift build -destination "generic/platform=macOS" | xcpretty
- name: Build iOS
run: set -o pipefail && xcodebuild -scheme SimpleSimdSwift build -destination "generic/platform=iOS" | xcpretty
- name: Build visionOS
run: set -o pipefail && xcodebuild -scheme SimpleSimdSwift build -destination "generic/platform=visionOS" | xcpretty
test:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Test macOS
run: set -o pipefail && xcodebuild -scheme SimpleSimdSwiftTests test -destination "platform=macOS,arch=arm64" | xcpretty
- name: Test iOS
run: set -o pipefail && xcodebuild -scheme SimpleSimdSwiftTests test -destination "name=iPhone 14 Pro" | xcpretty
- name: Test visionOS
run: set -o pipefail && xcodebuild -scheme SimpleSimdSwiftTests test -destination "name=Apple Vision Pro" | xcpretty
22 changes: 15 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
// swift-tools-version: 5.9
// swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "SimpleSimdSwift",
platforms: [
.macOS(.v10_13),
.iOS(.v12)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "SimpleSimdSwift",
targets: ["SimpleSimdSwift"]),
targets: [
"SimpleSimdSwift"
]
),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "SimpleSimdSwift"),
name: "SimpleSimdSwift"
),
.testTarget(
name: "SimpleSimdSwiftTests",
dependencies: ["SimpleSimdSwift"]),
dependencies: [
"SimpleSimdSwift"
]
),
]
)
33 changes: 33 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "SimpleSimdSwift",
platforms: [
.macOS(.v10_13),
.iOS(.v12),
.visionOS(.v1)
],
products: [
.library(
name: "SimpleSimdSwift",
targets: [
"SimpleSimdSwift"
]
),
],
targets: [
.target(
name: "SimpleSimdSwift"
),
.testTarget(
name: "SimpleSimdSwiftTests",
dependencies: [
"SimpleSimdSwift"
]
),
]
)

0 comments on commit 5cb59a6

Please sign in to comment.