File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-22.04
12+ strategy :
13+ matrix :
14+ fdb-version :
15+ - " 7.1.61"
16+ - " 7.3.43"
17+ swift-version :
18+ - " 6.0"
19+ - " 6.1"
20+
21+ name : FDB/Swift Bindings - ${{ matrix.fdb-version }} (Swift ${{ matrix.swift-version }})
22+
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@v4
26+
27+ - name : Install FoundationDB ${{ matrix.fdb-version }}
28+ run : |
29+ # Download and install FoundationDB
30+ FDB_VERSION="${{ matrix.fdb-version }}"
31+ wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_amd64.deb
32+ wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-server_${FDB_VERSION}-1_amd64.deb
33+ sudo dpkg -i foundationdb-clients_${FDB_VERSION}-1_amd64.deb foundationdb-server_${FDB_VERSION}-1_amd64.deb
34+
35+ # Wait for FoundationDB to be ready
36+ sleep 5
37+ fdbcli --exec status --timeout 10
38+
39+ - name : Setup Swift ${{ matrix.swift-version }}
40+ uses : uses: swift-actions/setup-swift@v2
41+ with :
42+ swift-version : " ${{ matrix.swift-version }}"
43+
44+ - name : Build Bindings
45+ run : swift build
46+
47+ - name : Run Unit Tests
48+ run : swift test
You can’t perform that action at this time.
0 commit comments