-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Updated Fixes for the Linux version of GRDB #1825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Changes from 16 commits
85d39e6
5db6c36
c3c0275
7e3d68a
46fdfa8
dd41816
7775237
8aaf0a6
6a2c9b5
e7850f9
be47b71
a5283f5
1e39d94
5ba2087
3c98b5f
492dbeb
4dbd83b
1e4d014
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| # https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md | ||
|
|
||
| name: "Linux CI" | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - development | ||
| - grdb_linux_changes | ||
| paths: | ||
| - 'GRDB/**' | ||
| - 'Tests/**' | ||
| - '.github/workflows/**' | ||
| - 'Makefile' | ||
| - 'Package.swift' | ||
| - 'SQLiteCustom/src' | ||
| pull_request: | ||
| paths: | ||
| - 'GRDB/**' | ||
| - 'Tests/**' | ||
| - '.github/workflows/**' | ||
| - 'Makefile' | ||
| - 'Package.swift' | ||
| - 'SQLiteCustom/src' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.ref_name }} | ||
| cancel-in-progress: true | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build-and-test-on-linux: | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 60 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest] | ||
| swift: ["6.2", "6.1"] | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Swift Dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| binutils \ | ||
| git \ | ||
| gnupg2 \ | ||
| libc6-dev \ | ||
| libcurl4-openssl-dev \ | ||
| libedit2 \ | ||
| libgcc-13-dev \ | ||
| libpython3-dev \ | ||
| libsqlite3-0 \ | ||
| libstdc++-13-dev \ | ||
| libxml2-dev \ | ||
| libz3-dev \ | ||
| pkg-config \ | ||
| python3-lldb \ | ||
| tzdata \ | ||
| unzip \ | ||
| zip \ | ||
| zlib1g-dev \ | ||
| wget \ | ||
| curl \ | ||
| ca-certificates \ | ||
| util-linux | ||
|
|
||
| - name: Cache Swiftly toolchains | ||
| id: cache-swiftly | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly} | ||
| key: swiftly-${{ matrix.os }}-${{ matrix.swift }} | ||
|
|
||
| - name: Install Swift Using Swiftly | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could alternatively just use
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did use
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh and I saw there's a possibility to |
||
| if: steps.cache-swiftly.outputs.cache-hit != 'true' | ||
| run: | | ||
| curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz | ||
| tar zxf swiftly-$(uname -m).tar.gz | ||
| ./swiftly init --quiet-shell-followup -y --skip-install | ||
| . "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh" | ||
| hash -r | ||
| swiftly install ${{ matrix.swift }} --assume-yes --use | ||
| . "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh" | ||
|
|
||
| - name: Build SPM Package | ||
| run: | | ||
| swift build -c release | ||
|
|
||
| - name: Run tests | ||
| run: | | ||
| swift test -c release | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be false, because it is often useful to see when one variant passes and another fails (e.g., if a change breaks for Swift 6.0 but not 6.1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, changed
cancel-in-progresstofalse