From 5af4336d45feb7585190db0b2a3f274192553db0 Mon Sep 17 00:00:00 2001 From: Oleh Kulykov Date: Fri, 14 Jun 2024 14:12:44 +0200 Subject: [PATCH] 1718367164 --- .github/workflows/swift-multi-platform.yml | 24 ++++++++++++++++++++++ CMakeLists.txt | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/swift-multi-platform.yml b/.github/workflows/swift-multi-platform.yml index 93581047..58ba0265 100644 --- a/.github/workflows/swift-multi-platform.yml +++ b/.github/workflows/swift-multi-platform.yml @@ -1 +1,25 @@ # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Swift + +on: + push: + branches: [ "master", "dev", "tmp" ] + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + swift: ["5.0", "5.10"] + runs-on: ${{ matrix.os }} + steps: + - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v4 + - name: Build + run: swift build + - name: Run tests + run: swift test diff --git a/CMakeLists.txt b/CMakeLists.txt index 64da8e92..61aa102d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1026,4 +1026,3 @@ if(LIBPLZMA_OPT_TESTS) # This must always be last! include(CPack) endif(LIBPLZMA_OPT_TESTS) -