verbose cocoapods #4
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 & Tests | |
on: [push, pull_request] | |
env: | |
SUBSTRATE_NODE_VERSION: 'v0.9.40' | |
jobs: | |
apple: | |
strategy: | |
matrix: | |
tests: | |
- xcode: '14.2' | |
machine: macos-12 | |
- xcode: '14.3.1' | |
machine: macos-13 | |
runs-on: ${{ matrix.tests.machine }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Select Xcode | |
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.tests.xcode }}.app | |
- name: Download Substrate Node | |
uses: dsaltares/[email protected] | |
with: | |
repo: 'substrate-developer-hub/substrate-node-template' | |
version: 'tags/${{ env.SUBSTRATE_NODE_VERSION }}' | |
file: 'node-template-x86_64-apple-darwin.tar.gz' | |
- name: Unpack Substrate Node | |
run: tar -xvzf *.tar.gz | |
- name: Build & Test SPM | |
run: ./run_with_node.sh './node-template' 'xcrun swift test' 'node_log.txt' | |
- name: Upload swift test node log | |
uses: actions/upload-artifact@v3 | |
with: | |
name: swift_test_node_full_log.txt | |
path: node_log.txt | |
- name: Substrate Build & Test Cocoapods | |
run: pod lib lint --allow-warnings --fail-fast --verbose Substrate.podspec | |
- name: Keychain Build & Test Cocoapods | |
run: pod lib lint --allow-warnings --fail-fast --include-podspecs=Substrate.podspec Substrate-Keychain.podspec | |
- name: RPC Build & Test Cocoapods | |
run: pod lib lint --allow-warnings --fail-fast --include-podspecs=Substrate.podspec Substrate-RPC.podspec | |
linux: | |
strategy: | |
matrix: | |
swift: ['5.8'] | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
container: | |
image: swift:${{ matrix.swift }} | |
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --security-opt apparmor=unconfined | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download Substrate Node | |
uses: dsaltares/[email protected] | |
with: | |
repo: 'substrate-developer-hub/substrate-node-template' | |
version: 'tags/${{ env.SUBSTRATE_NODE_VERSION }}' | |
file: 'node-template-x86_64-unknown-linux-gnu.tar.gz ' | |
- name: Unpack Substrate Node | |
run: tar -xvzf *.tar.gz | |
- name: Build and Test | |
run: ./run_with_node.sh './node-template' 'swift test' 'node_log.txt' | |
- name: Upload node log | |
uses: actions/upload-artifact@v3 | |
with: | |
name: linux_swift_test_node_full_log.txt | |
path: node_log.txt |