File tree Expand file tree Collapse file tree 5 files changed +22
-5
lines changed Expand file tree Collapse file tree 5 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v2.3.4
10
+ with :
11
+ submodules : true
10
12
- uses : cachix/install-nix-action@v12
11
13
with :
12
14
skip_adding_nixpkgs_channel : true
16
18
signingKey : ' ${{ secrets.CACHIX_SIGNING_KEY }}'
17
19
# Only needed for private caches
18
20
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
21
+ - run : git fetch --tags --force --recurse-submodules
19
22
- run : nix-build
20
- # TODO - run: nix-shell --run "sbt test "
23
+ - run : nix-shell --run "sbt -batch -Dfile.encoding=UTF8 scalalsNative/run "
Original file line number Diff line number Diff line change 36
36
nixpkgs-fmt . enable = true ;
37
37
nix-linter . enable = true ;
38
38
} ;
39
- # generated files
40
- excludes = [ "^nix/sources\. nix$" ] ;
39
+ # generated files / submodules
40
+ excludes = [
41
+ "^nix/sources\. nix$"
42
+ "^modules/"
43
+ ] ;
41
44
} ;
42
45
} ;
43
46
}
Original file line number Diff line number Diff line change @@ -9,8 +9,13 @@ if [ -e "$SCALA_NATIVE_BUILD" ]; then
9
9
else
10
10
rm -rf " $HOME /.ivy2/local"
11
11
12
+ printf ' \n*** Compiling scala-native ***\n\n'
12
13
(cd modules/scala-native && sbt -batch -Dfile.encoding=UTF8 -sbt-version " $SBT_VERSION " publishLocal)
13
- (cd modules/scopt && sbt -batch -Dfile.encoding=UTF8 -sbt-version " $SBT_VERSION " " ++$TRAVIS_SCALA_VERSION " scoptNative/publishLocal)
14
+
15
+ printf ' \n*** Compiling scopt ***\n\n'
16
+ (cd modules/scopt && sbt -batch -Dfile.encoding=UTF8 -sbt-version " $SBT_VERSION " ${TRAVIS_SCALA_VERSION: +" ++$TRAVIS_SCALA_VERSION " } scoptNative/publishLocal)
17
+
18
+ printf ' \n*** Compiling scala-library-compat ***\n\n'
14
19
(cd modules/scala-library-compat && SCALANATIVE_VERSION=0.4.0-SNAPSHOT sbt -batch -sbt-version " $SBT_VERSION " compat211Native/publishLocal)
15
20
16
21
touch " $SCALA_NATIVE_BUILD "
Original file line number Diff line number Diff line change @@ -8,5 +8,11 @@ project.pkgs.mkShell {
8
8
buildInputs = builtins . attrValues project . devTools ;
9
9
shellHook = ''
10
10
${ project . ci . pre-commit-check . shellHook }
11
+
12
+ export SN_BUILD=$( sed -n -e 's/.* SN_BUILD=\([0-9]*\).*/\1/p' -e T -e q .travis.yml )
13
+ export SBT_VERSION=$( sed -n -e 's/.* SBT_VERSION=\([0-9.]*\).*/\1/p' -e T -e q .travis.yml )
14
+ export TRAVIS_SCALA_VERSION=$( sed -n -e '/^scala:/{ n ; s/^[- ]*//p ; q }' .travis.yml )
15
+
16
+ scripts/travis-install
11
17
'' ;
12
18
}
You can’t perform that action at this time.
0 commit comments