Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Jun 14, 2024
1 parent 4a8f593 commit ca3f659
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 45 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,22 @@ jobs:
- name: Run tests
run: make test

ubuntu:
name: Ubuntu
linux:
strategy:
matrix:
swift:
- '5.10'
name: Ubuntu (Swift ${{ matrix.swift }})
runs-on: ubuntu-latest
container: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v4
- name: Run tests
run: make test-linux
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y libcurl4-openssl-dev
- name: Run tests
run: make test
- name: Build for static-stdlib
run: make build-for-static-stdlib

wasm:
name: Wasm
Expand Down Expand Up @@ -63,19 +72,3 @@ jobs:
run: swift build -c ${{ matrix.config }}
- name: Run tests (debug only)
run: swift test

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.10.0'
- name: Install dependencies
run: sudo apt-get install -y libcurl4-openssl-dev
- uses: actions/checkout@v4
- name: Build for static-stdlib
run: make build-for-static-stdlib
24 changes: 0 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,6 @@ test-debug:
test: test-debug
@swift test -c release

test-linux: test-debug

test-linux: test

test-linux-docker:
@docker run \
--rm \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.10-focal \
bash -c "apt-get update && apt-get install make && make test"

test-linux-static-stdlib:
@docker run \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.10-focal \
bash -c "swift build -c debug -Xswiftc -static-stdlib"
@docker run \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.10-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
Expand Down

0 comments on commit ca3f659

Please sign in to comment.