-
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
3 changed files
with
58 additions
and
65 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 |
---|---|---|
|
@@ -28,62 +28,62 @@ on: | |
type: string | ||
|
||
jobs: | ||
# build-devcontainer-linux: | ||
# name: "Build and test: ${{ matrix.host.os }}/${{ inputs.build-type }}" | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# host: [ | ||
# { type: linux, os: ubuntu-latest, | ||
# build-options: "-v --build-tests -Xswiftc -enable-testing", | ||
# test-options: "-v --enable-code-coverage" | ||
# } | ||
# ] | ||
# configuration: [ "debug", "release" ] | ||
|
||
# runs-on: ${{ matrix.host.os }} | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
build-devcontainer-linux: | ||
name: "Build and test: ${{ matrix.host.os }}/${{ inputs.build-type }}" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
host: [ | ||
{ type: linux, os: ubuntu-latest, | ||
build-options: "-v --build-tests -Xswiftc -enable-testing", | ||
test-options: "-v --enable-code-coverage" | ||
} | ||
] | ||
configuration: [ "debug", "release" ] | ||
|
||
# - uses: actions/cache@v3 | ||
# with: | ||
# path: .build | ||
# key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-spm- | ||
runs-on: ${{ matrix.host.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# - name: Build and Test | ||
# uses: devcontainers/[email protected] | ||
# with: | ||
# runCmd: | | ||
# set -eo pipefail | ||
# swift package resolve | ||
# .build/checkouts/Swifty-LLVM/Tools/make-pkgconfig.sh llvm.pc | ||
# export PKG_CONFIG_PATH=$PWD | ||
# swift build -c ${{ inputs.build-type }} ${{ matrix.host.build-options }} | ||
# BUILD_DIR=$(swift build -c ${{ inputs.build-type }} --show-bin-path) | ||
# echo "BUILD_DIR=$BUILD_DIR" >> $GITHUB_ENV | ||
# # swift test -c ${{ inputs.build-type }} ${{ matrix.host.test-options }} | | ||
# # tee testoutput.txt && ( | ||
# # (grep -q "[.']EndToEndTests[/. ]test_" testoutput.txt && grep -q "[.']HyloTests[/. ]test_" testoutput.txt) || | ||
# # (echo "error: generated tests failed to run; see | ||
# # https://github.com/apple/swift-package-manager/issues/6595" && false) ) | ||
|
||
# # - name: Check code coverage | ||
# # uses: mattpolzin/[email protected] | ||
# # with: | ||
# # SORT_ORDER: +cov | ||
# # MINIMUM_COVERAGE: 84 | ||
# # CODECOV_JSON: .build/${{ inputs.build-type }}/codecov/*.json | ||
|
||
|
||
# - name: Upload Hylo LSP artifacts (${{ inputs.build-type }}) | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: hylo-lsp-artifacts-linux | ||
# path: | | ||
# ${{ env.BUILD_DIR }}/hylo-lsp-client | ||
# ${{ env.BUILD_DIR }}/hylo-lsp-server | ||
- uses: actions/cache@v3 | ||
with: | ||
path: .build | ||
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-spm- | ||
- name: Build and Test | ||
uses: devcontainers/[email protected] | ||
with: | ||
runCmd: | | ||
set -eo pipefail | ||
swift package resolve | ||
.build/checkouts/Swifty-LLVM/Tools/make-pkgconfig.sh llvm.pc | ||
export PKG_CONFIG_PATH=$PWD | ||
swift build -c ${{ inputs.build-type }} ${{ matrix.host.build-options }} | ||
BUILD_DIR=$(swift build -c ${{ inputs.build-type }} --show-bin-path) | ||
echo "BUILD_DIR=$BUILD_DIR" >> $GITHUB_ENV | ||
# swift test -c ${{ inputs.build-type }} ${{ matrix.host.test-options }} | | ||
# tee testoutput.txt && ( | ||
# (grep -q "[.']EndToEndTests[/. ]test_" testoutput.txt && grep -q "[.']HyloTests[/. ]test_" testoutput.txt) || | ||
# (echo "error: generated tests failed to run; see | ||
# https://github.com/apple/swift-package-manager/issues/6595" && false) ) | ||
# - name: Check code coverage | ||
# uses: mattpolzin/[email protected] | ||
# with: | ||
# SORT_ORDER: +cov | ||
# MINIMUM_COVERAGE: 84 | ||
# CODECOV_JSON: .build/${{ inputs.build-type }}/codecov/*.json | ||
|
||
|
||
- name: Upload Hylo LSP artifacts (${{ inputs.build-type }}) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: hylo-lsp-artifacts-linux | ||
path: | | ||
${{ env.BUILD_DIR }}/hylo-lsp-client | ||
${{ env.BUILD_DIR }}/hylo-lsp-server | ||
build-native-macos: | ||
name: "Build and test: ${{ matrix.host.os }}/${{ inputs.build-type }}" | ||
|
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