-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* native support * native support * fix ci * fix ci * fixed permissions * updated README
- Loading branch information
Showing
38 changed files
with
806 additions
and
229 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 |
---|---|---|
|
@@ -51,8 +51,9 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: ['[email protected]'] | ||
scala: ['2.11.12', '2.12.17', '2.13.8', '3.2.2'] | ||
java: ['17'] | ||
scala: ['2.12.17', '2.13.8', '3.3.0'] | ||
platform: ['JVM', 'Native'] | ||
steps: | ||
- name: Checkout current branch | ||
uses: actions/[email protected] | ||
|
@@ -64,8 +65,11 @@ jobs: | |
java-version: ${{ matrix.java }} | ||
- name: Cache scala dependencies | ||
uses: coursier/cache-action@v6 | ||
- name: Install libuv | ||
if: matrix.platform == 'Native' | ||
run: sudo apt-get update && sudo apt-get install -y libuv1-dev | ||
- name: Run tests | ||
run: sbt ++${{ matrix.scala }} zioProcess/test | ||
run: sbt ++${{ matrix.scala }} zioProcess${{ matrix.platform }}/test | ||
|
||
ci: | ||
runs-on: ubuntu-20.04 | ||
|
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
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
29 changes: 29 additions & 0 deletions
29
zio-process/jvm/src/main/scala/zio/process/CommandPlatformSpecific.scala
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,29 @@ | ||
/* | ||
* Copyright 2017-2020 John A. De Goes and the ZIO Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package zio.process | ||
|
||
import scala.annotation.nowarn | ||
import java.io.File | ||
import zio.NonEmptyChunk | ||
|
||
private[process] trait CommandPlatformSpecific { | ||
|
||
@nowarn | ||
protected def checkDirectory(dir: File): Boolean = true | ||
|
||
protected def adaptCommand(command: NonEmptyChunk[String]): NonEmptyChunk[String] = command | ||
|
||
} |
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.