Check whether this works #7
This file contains hidden or 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
| # 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: | |
| matrix: | |
| os: [ubuntu-latest] | |
| swift: ["6.1.0"] | |
| 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 | |
| key: swiftly-${{ runner.os }}-${{ matrix.swift }} | |
| - name: Install Swift Using Swiftly | |
| 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 | |
| . "${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: Setup Environment | |
| # uses: swift-actions/setup-swift@v2 | |
| # with: | |
| # swift-version: ${{ matrix.swift }} | |
| - name: Build SPM Package | |
| run: swift build -c release -v | |
| - name: Run tests | |
| run: swift test -c release |