Update dependency nicklockwood/SwiftFormat to v0.55.3 #131
This file contains 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
name: Linux | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
linux-test-build-release: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
swift: ["latest"] | |
container: | |
image: swift:${{ matrix.swift }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Restore APT cache | |
uses: actions/[email protected] | |
with: | |
path: /var/cache/apt | |
key: ${{ runner.os }}-apt | |
- name: Restore cached SPM dependencies | |
uses: actions/[email protected] | |
with: | |
path: .build | |
key: swiftpm-${{ runner.os }}-${{ inputs.swift-version }}-${{ hashFiles('Package.swift') }} | |
restore-keys: | | |
swiftpm-${{ runner.os }}-${{ inputs.swift-version }}- | |
swiftpm-${{ runner.os }}- | |
- name: Install dependencies | |
run: | | |
# update dependency source list to more modern linux distribution | |
# echo -e "deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse" >> /etc/apt/sources.list | |
apt update | |
apt-get install -y -qq pkg-config libassimp-dev | |
- name: Test | |
run: swift test | |
- name: Build Release | |
run: swift build -c release |