Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Apr 13, 2023
1 parent 1b38fe8 commit 38746db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ jobs:
- name: Run tests
run: make test-linux

static-stdlib:
name: Static standard library
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: '5.8.0'
- name: Install dependencies
run: sudo apt-get install -y libcurl4-openssl-dev
- uses: actions/checkout@v3
- name: Build for static-stdlib
run: make build-for-static-stdlib

wasm:
name: SwiftWASM
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test-debug:
|| (echo "$(FAIL) expected $(XCT_FAIL) to be called with $(EXPECTED)" >&2 && exit 1)

test: test-debug
@swift test -c release | grep '⚠︎ Warning: This XCTFail was ignored' || exit 1
@swift test -c release

test-linux: test-debug
@swift test -c release
Expand All @@ -37,6 +37,10 @@ test-linux-static-stdlib:
swift:5.6.2-focal \
bash -c "swift build -c release -Xswiftc -static-stdlib"

build-for-static-stdlib:
@swift build -c debug --static-swift-stdlib
@swift build -c release --static-swift-stdlib

format:
@swift format \
--ignore-unparsable-files \
Expand Down

0 comments on commit 38746db

Please sign in to comment.