Skip to content

Commit

Permalink
Update ci (#17)
Browse files Browse the repository at this point in the history
* Update ci-macos.yml

* Update ci-linux.yml

* Update ci-linux.yml

* Update ci-linux.yml

* Update ci-linux.yml

* Update ci-linux.yml
  • Loading branch information
ctreffs authored Apr 20, 2023
1 parent c1c5f4f commit 730d24c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 730d24c

Please sign in to comment.