diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 894f977..4648e01 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -20,34 +20,27 @@ jobs: uses: actions/checkout@v3.5.2 - name: Restore APT cache - uses: actions/cache@v2.1.8 + uses: actions/cache@v3 with: path: /var/cache/apt key: ${{ runner.os }}-apt - name: Restore cached SPM dependencies - uses: actions/cache@v2.1.8 + uses: actions/cache@v3 with: - path: | - .build/repositories - .build/checkouts - key: ${{ runner.os }}-spm-deps-${{ hashFiles('**/Package.resolved') }} + path: .build + key: swiftpm-${{ runner.os }}-${{ inputs.swift-version }}-${{ hashFiles('Package.swift') }} restore-keys: | - ${{ runner.os }}-spm-deps- + swiftpm-${{ runner.os }}-${{ inputs.swift-version }}- + swiftpm-${{ runner.os }}- - name: Install dependencies run: | apt update - apt-get install -y curl - apt-get install -y sqlite3 - apt-get install -y libsqlite3-dev - apt-get install -y libsdl2-dev - apt-get install -y libvulkan-dev - apt-get install -y libvulkan1 - apt-get install -y vulkan-utils + apt install -y curl sqlite3 libsqlite3-dev libsdl2-dev libvulkan-dev libvulkan1 - name: Build Release - run: make build-release + run: swift build -c release - name: Upload build artifacts if: failure() diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index b577587..e0a7f5a 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -9,10 +9,10 @@ on: jobs: macOS-build-release: - runs-on: macOS-11 + runs-on: macOS-latest strategy: matrix: - xcode: ["13.0"] + xcode: ["14.2"] steps: - name: Checkout uses: actions/checkout@v3.5.2