factor LZ77 into a separate module #19
Workflow file for this run
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: build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
macos: | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- macos-13 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build | |
run: | | |
swift --version | |
swift build | |
- name: test | |
run: | | |
swift run -c debug PNGTests | |
swift run -c release PNGIntegrationTests | |
swift run -c release PNGCompressionTests | |
linux: | |
runs-on: ${{ matrix.os.runner }} | |
name: ${{ matrix.os.runner }} (${{ matrix.swift.toolchain }}) | |
strategy: | |
matrix: | |
os: | |
- runner: ubuntu-22.04 | |
prefix: ubuntu2204 | |
suffix: ubuntu22.04 | |
swift: | |
- toolchain: 5.9.1-RELEASE | |
branch: swift-5.9.1-release | |
steps: | |
- uses: actions/checkout@v2 | |
- name: cache swift toolchains | |
uses: actions/cache@v2 | |
with: | |
path: swift-${{ matrix.swift.toolchain }}.tar.gz | |
key: ${{ matrix.os.runner }}:swift:${{ matrix.swift.toolchain }} | |
- name: cache status | |
id: cache_status | |
uses: andstor/file-existence-action@v1 | |
with: | |
files: swift-${{ matrix.swift.toolchain }}.tar.gz | |
- name: download swift toolchain | |
if: steps.cache_status.outputs.files_exists == 'false' | |
run: "curl https://download.swift.org/\ | |
${{ matrix.swift.branch }}/\ | |
${{ matrix.os.prefix }}/\ | |
swift-${{ matrix.swift.toolchain }}/\ | |
swift-${{ matrix.swift.toolchain }}-${{ matrix.os.suffix }}.tar.gz \ | |
--output swift-${{ matrix.swift.toolchain }}.tar.gz" | |
- name: set up swift | |
run: | | |
mkdir -p $GITHUB_WORKSPACE/swift-${{ matrix.swift.toolchain }} | |
tar -xzf swift-${{ matrix.swift.toolchain }}.tar.gz -C $GITHUB_WORKSPACE/swift-${{ matrix.swift.toolchain }} --strip 1 | |
echo "$GITHUB_WORKSPACE/swift-${{ matrix.swift.toolchain }}/usr/bin" >> $GITHUB_PATH | |
- name: build | |
run: | | |
swift --version | |
swift build | |
- name: test | |
run: | | |
swift run -c debug PNGTests | |
swift run -c release PNGIntegrationTests | |
swift run -c release PNGCompressionTests |