Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup ci #1

Merged
merged 4 commits into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
push:
branches:
- main
paths-ignore:
- README.md
- LICENSE
pull_request:
paths-ignore:
- README.md
- LICENSE
workflow_dispatch:

permissions:
contents: read

env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app

jobs:
build:
name: Build & Test
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Select Xcode 15
run: sudo xcode-select -s /Applications/Xcode_15.0.app

- name: Build
run: swift build

- name: Test
run: swift test

# linux-test:
# name: Linux Test
# runs-on: ubuntu-latest
# steps:
# - name: Install Swift
# uses: slashmo/install-swift@v0.4.0
# with:
# version: swift-5.9-RELEASE
#
# - uses: actions/checkout@v4
#
# - name: Test
# run: swift test
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ let package = Package(
),
.target(
name: "_MachOKitSPM",
dependencies: ["MachOKitBin"]
dependencies: ["MachOKitBin", "MachOKitCBin"]
),
.testTarget(
name: "MachOKitSPMTests",
dependencies: ["MachOKitBin"]
dependencies: ["_MachOKitSPM"]
)
]
)
4 changes: 2 additions & 2 deletions Sources/_MachOKitSPM/MachOKitSPM.swift
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The Swift Programming Language
// https://docs.swift.org/swift-book
@_exported import MachOKit
@_exported import MachOKitC
9 changes: 7 additions & 2 deletions Tests/MachOKitSPMTests/MachOKitSPMTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import XCTest
import MachOKit
import _MachOKitSPM

final class MachOKitSPMTests: XCTestCase {}
final class MachOKitSPMTests: XCTestCase {
func test() {
let machO = MachOImage(name: "Foundation")!
print(machO)
}
}