-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
926 additions
and
897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,101 +3,5 @@ name: "Build and Test" | |
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
TestOnMacOS-10_15-x86_64: | ||
runs-on: "macos-10.15" | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Run tests" | ||
run: "swift test" | ||
# - name: "Test CreateReadWrite" | ||
# run: | | ||
# cd Examples/CreateReadWrite | ||
# swift build | ||
# ./.build/debug/create Package.swift Sources/ Sources/ExtractArchive/ Sources/ExtractArchive/main.swift | ||
# ./.build/debug/read output.cpio | ||
# mkdir outputCPIOExtractFolder | ||
# cd outputCPIOExtractFolder | ||
# ./../.build/debug/extract ../output.cpio | ||
# ls -lahR | ||
TestOnMacOS-11_0-x86_64: | ||
runs-on: "macos-11.0" | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Run tests" | ||
run: "swift test" | ||
# - name: "Test CreateReadWrite" | ||
# run: | | ||
# cd Examples/CreateReadWrite | ||
# swift build | ||
# ./.build/debug/create Package.swift Sources/ Sources/ExtractArchive/ Sources/ExtractArchive/main.swift | ||
# ./.build/debug/read output.cpio | ||
# mkdir outputCPIOExtractFolder | ||
# cd outputCPIOExtractFolder | ||
# ./../.build/debug/extract ../output.cpio | ||
# ls -lahR | ||
# TestOnUbuntu-20_04-ARM: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: uraimo/[email protected] | ||
# with: | ||
# arch: aarch64 | ||
# distro: ubuntu20.04 | ||
# githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
# run: | | ||
# export DEBIAN_FRONTEND=noninteractive | ||
# apt update -q | ||
# apt install -yq curl sudo | ||
# curl -s https://packagecloud.io/install/repositories/swift-arm/release/script.deb.sh | sudo bash | ||
# apt install -yq swiftlang | ||
# apt update -yq | ||
# swift test | ||
TestOnUbuntu-20_04-x86_64: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Run tests" | ||
run: "swift test" | ||
- name: "Test CreateReadWrite" | ||
run: | | ||
cd Examples/CreateReadWrite | ||
swift build | ||
./.build/debug/create Package.swift Sources/ Sources/ExtractArchive/ Sources/ExtractArchive/main.swift | ||
./.build/debug/read output.cpio | ||
mkdir outputCPIOExtractFolder | ||
cd outputCPIOExtractFolder | ||
./../.build/debug/extract ../output.cpio | ||
ls -lahR | ||
TestOnWindows10-x86_64: | ||
runs-on: "windows-latest" | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- uses: "seanmiddleditch/gha-setup-vsdevenv@master" | ||
- name: "Install swift-5.4-RELEASE" | ||
run: 'Install-Binary -Url "https://swift.org/builds/swift-5.4.2-release/windows10/swift-5.4.2-RELEASE/swift-5.4.2-RELEASE-windows10.exe" -Name "installer.exe" -ArgumentList ("-q")' | ||
- name: "Set Environment Variables" | ||
run: | | ||
echo "SDKROOT=C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
echo "DEVELOPER_DIR=C:\Library\Developer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
- name: "Adjust Paths" | ||
run: 'echo "C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin;C:\Library\Swift-development\bin;C:\Library\icu-67\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append' | ||
- name: "Install Supporting Files" | ||
shell: "cmd" | ||
run: | | ||
copy "%SDKROOT%\usr\share\ucrt.modulemap" "%UniversalCRTSdkDir%\Include\%UCRTVersion%\ucrt\module.modulemap" | ||
copy "%SDKROOT%\usr\share\visualc.modulemap" "%VCToolsInstallDir%\include\module.modulemap" | ||
copy "%SDKROOT%\usr\share\visualc.apinotes" "%VCToolsInstallDir%\include\visualc.apinotes" | ||
copy "%SDKROOT%\usr\share\winsdk.modulemap" "%UniversalCRTSdkDir%\Include\%UCRTVersion%\um\module.modulemap" | ||
- name: "Build" | ||
run: "swift build" | ||
# - name: "Test CreateReadWrite" | ||
# run: | | ||
# cd Examples/CreateReadWrite | ||
# ls | ||
# swift build | ||
TestBuildingOnMacOS-11_0-ARM64: | ||
runs-on: "macos-11.0" | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Test Building For ARM" | ||
run: "swift build --arch arm64 && swift build --package-path Examples/CreateReadWrite --arch arm64" | ||
"BuildAndTest": | ||
uses: LebJe/SwiftWorkflows/.github/workflows/buildAndTest.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: "Run Pre-Commit" | ||
|
||
on: "pull_request" | ||
|
||
jobs: | ||
PreCommit: | ||
runs-on: "macos-latest" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
- name: "Install Dependencies" | ||
run: "brew bundle" | ||
- uses: "LebJe/[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 4, | ||
"singleQuote": false, | ||
"useTabs": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: 1 | ||
builder: | ||
configs: | ||
- documentation_targets: ["CPIOArchiveKit"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// swift-tools-version:5.3 | ||
// swift-tools-version:5.5 | ||
|
||
import PackageDescription | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) 2021 Jeff Lebrun | ||
// Copyright (c) 2023 Jeff Lebrun | ||
// | ||
// Licensed under the MIT License. | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.