feat: Initial release of Epilog Zing macOS printer driver #1
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
| name: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build & Test | |
| runs-on: macos-14 # ARM64 runner (M1) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Swift | |
| uses: swift-actions/setup-swift@v2 | |
| with: | |
| swift-version: "5.9" | |
| - name: Cache Swift packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: .build | |
| key: ${{ runner.os }}-spm-${{ hashFiles('Package.swift') }} | |
| restore-keys: | | |
| ${{ runner.os }}-spm- | |
| - name: Build (Debug) | |
| run: swift build -v | |
| - name: Run Tests | |
| run: swift test -v | |
| - name: Build (Release - ARM64) | |
| run: swift build -c release --arch arm64 -v | |
| - name: Verify Binary | |
| run: | | |
| file .build/arm64-apple-macosx/release/rastertoepiloz | |
| .build/arm64-apple-macosx/release/rastertoepiloz --help 2>&1 || true | |
| build-universal: | |
| name: Build Universal Binary | |
| runs-on: macos-14 | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Swift | |
| uses: swift-actions/setup-swift@v2 | |
| with: | |
| swift-version: "5.9" | |
| - name: Cache Swift packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: .build | |
| key: ${{ runner.os }}-spm-${{ hashFiles('Package.swift') }} | |
| restore-keys: | | |
| ${{ runner.os }}-spm- | |
| - name: Build Universal Binary (arm64 + x86_64) | |
| run: swift build -c release --arch arm64 --arch x86_64 | |
| - name: Verify Universal Binary | |
| run: | | |
| file .build/apple/Products/Release/rastertoepiloz | |
| lipo -info .build/apple/Products/Release/rastertoepiloz | |
| - name: Upload Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rastertoepiloz-universal | |
| path: .build/apple/Products/Release/rastertoepiloz | |
| retention-days: 7 | |
| lint: | |
| name: Lint | |
| runs-on: macos-14 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Check Swift format | |
| run: | | |
| # Verify Package.swift is valid | |
| swift package describe |