From 32b155f4d847ef9943d8b12d0dcafae03209040e Mon Sep 17 00:00:00 2001 From: Yonas Kolb Date: Wed, 14 Aug 2019 11:22:49 +1000 Subject: [PATCH 1/8] Update and rename main.yml to ci.yml --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..04195d4f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI +on: [push, pull_request] +jobs: + test: + runs-on: macos-latest + steps: + - uses: actions/checkout@master + - name: Resolve + - name: Build + run: swift build + - name: Test + run: swift test + - name: Gen fixtures + run: scripts/gen-fixtures.sh + - name: Check fixtures + run: scripts/diff-fixtures.sh + - name: Build fixtures + run: scripts/build-fixtures.sh + - name: Build release + run: make build From 81791b7b5df9c3f67afaeb0062ddf97482252ecd Mon Sep 17 00:00:00 2001 From: Yonas Kolb Date: Wed, 14 Aug 2019 11:26:08 +1000 Subject: [PATCH 2/8] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04195d4f..b9c392c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ jobs: steps: - uses: actions/checkout@master - name: Resolve + run: swift package resolve - name: Build run: swift build - name: Test From 5387f674405cf7eb783f76950a1cf4a26eb1c087 Mon Sep 17 00:00:00 2001 From: Yonas Kolb Date: Wed, 14 Aug 2019 11:37:07 +1000 Subject: [PATCH 3/8] update --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9c392c1..4152f1ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,12 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@master + - name: Info + run: | + swift --version + swift package --version + xcode-select -p + ls /Applications - name: Resolve run: swift package resolve - name: Build @@ -19,3 +25,4 @@ jobs: run: scripts/build-fixtures.sh - name: Build release run: make build + From c97d048933c8f2bf44d80cc0be4be601c2821b7e Mon Sep 17 00:00:00 2001 From: yonaskolb Date: Wed, 14 Aug 2019 11:58:03 +1000 Subject: [PATCH 4/8] try to use xcode 11 beta --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4152f1ad..897666ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,10 @@ on: [push, pull_request] jobs: test: runs-on: macos-latest + name: Test ${{ matrix.xcode }} + strategy: + matrix: + xcode: [Xcode_10.3, Xcode_11_beta] steps: - uses: actions/checkout@master - name: Info @@ -10,7 +14,6 @@ jobs: swift --version swift package --version xcode-select -p - ls /Applications - name: Resolve run: swift package resolve - name: Build From 4fae6e2ad0e907435238c291f4064fb33314ed8e Mon Sep 17 00:00:00 2001 From: yonaskolb Date: Wed, 14 Aug 2019 12:14:10 +1000 Subject: [PATCH 5/8] try again --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 897666ad..1c5bd8f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,10 +3,10 @@ on: [push, pull_request] jobs: test: runs-on: macos-latest - name: Test ${{ matrix.xcode }} + name: Test ${{ matrix.xcode_version }} strategy: matrix: - xcode: [Xcode_10.3, Xcode_11_beta] + xcode_version: ['10.3', '11_beta'] steps: - uses: actions/checkout@master - name: Info From 0be484e1d62ceff83af08e649f0e3b61333c1b2c Mon Sep 17 00:00:00 2001 From: yonaskolb Date: Wed, 14 Aug 2019 12:24:30 +1000 Subject: [PATCH 6/8] manually select xcode 11 --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c5bd8f6..6b6a7a7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,17 +3,15 @@ on: [push, pull_request] jobs: test: runs-on: macos-latest - name: Test ${{ matrix.xcode_version }} - strategy: - matrix: - xcode_version: ['10.3', '11_beta'] + name: Test Swift 5 steps: - uses: actions/checkout@master + - name: Xcode version + run: sudo xcode-select -s /Applications/Xcode_11_beta.app - name: Info run: | swift --version swift package --version - xcode-select -p - name: Resolve run: swift package resolve - name: Build From 67e5c125eb45a1090e87f46603339383e6693e75 Mon Sep 17 00:00:00 2001 From: yonaskolb Date: Wed, 14 Aug 2019 12:34:00 +1000 Subject: [PATCH 7/8] go back to Xcode 10.3 --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b6a7a7d..4a083add 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,13 @@ name: CI on: [push, pull_request] jobs: - test: + test_swift_5: runs-on: macos-latest - name: Test Swift 5 + #name: Test Swift 5 steps: - uses: actions/checkout@master - - name: Xcode version - run: sudo xcode-select -s /Applications/Xcode_11_beta.app + #- name: Xcode version + # run: sudo xcode-select -s /Applications/Xcode_11_beta.app - name: Info run: | swift --version From d5c272f4ea00f22a1922cecf5bdeac4875a55fd3 Mon Sep 17 00:00:00 2001 From: yonaskolb Date: Thu, 15 Aug 2019 14:13:57 +1000 Subject: [PATCH 8/8] cleanup --- .github/workflows/ci.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a083add..5e4f446b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,17 +1,13 @@ name: CI on: [push, pull_request] jobs: - test_swift_5: + swift_5: runs-on: macos-latest - #name: Test Swift 5 + name: Swift 5.0 steps: - uses: actions/checkout@master - #- name: Xcode version - # run: sudo xcode-select -s /Applications/Xcode_11_beta.app - name: Info - run: | - swift --version - swift package --version + run: swift --version; swift package --version - name: Resolve run: swift package resolve - name: Build @@ -26,4 +22,27 @@ jobs: run: scripts/build-fixtures.sh - name: Build release run: make build + # swift_5.1: + # runs-on: macos-latest + # name: Swift 5.1 + # steps: + # - uses: actions/checkout@master + # - name: Xcode version + # run: sudo xcode-select -s /Applications/Xcode_11_beta.app + # - name: Info + # run: swift --version; swift package --version + # - name: Resolve + # run: swift package resolve + # - name: Build + # run: swift build + # - name: Test + # run: swift test + # - name: Gen fixtures + # run: scripts/gen-fixtures.sh + # - name: Check fixtures + # run: scripts/diff-fixtures.sh + # - name: Build fixtures + # run: scripts/build-fixtures.sh + # - name: Build release + # run: make build