Skip to content

Commit a206ad8

Browse files
committed
Change locations for automatic CI xcarchive generation.
1 parent 1ee8b5a commit a206ad8

File tree

5 files changed

+163
-180
lines changed

5 files changed

+163
-180
lines changed

.github/actions/build-for-testing/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ inputs:
99
workspace:
1010
description: Workspace Name
1111
required: true
12+
description: Build for testing.
1213
runs:
1314
using: composite
1415
steps:
Lines changed: 43 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
name: Install Dependencies
2+
description: Install dependencies
23
runs:
3-
using: composite
4-
steps:
5-
- name: Install Homebrew Dependencies
6-
shell: bash
7-
run: |
8-
brew install gnu-sed
9-
- name: Checkout Rust-Lightning and LDK-C-Bindings git
10-
shell: bash
11-
run: |
12-
git clone --branch 2021-03-java-bindings-base https://github.com/TheBlueMatt/rust-lightning bindings/artifacts/rust-lightning
13-
git clone https://github.com/lightningdevkit/ldk-c-bindings bindings/artifacts/ldk-c-bindings
14-
- name: Install Rust, required targets
15-
shell: bash
16-
run: |
17-
rustup toolchain install nightly
18-
rustup target add aarch64-apple-darwin aarch64-apple-ios x86_64-apple-ios
19-
rustup component add rust-src --toolchain nightly-x86_64-apple-darwin
20-
- name: Load Cache
21-
uses: actions/cache@v3
22-
with:
23-
path: |
24-
~/.cargo/bin/
25-
~/.cargo/registry/index/
26-
~/.cargo/registry/cache/
27-
~/.cargo/git/db/
28-
target/
29-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
30-
- name: Generate C Bindings
31-
shell: bash
32-
run: |
33-
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
34-
pushd bindings/artifacts/ldk-c-bindings
35-
./genbindings.sh ../rust-lightning true
36-
popd
37-
- name: Generate Swift Bindings
38-
shell: bash
39-
run: |
40-
python3 ./
41-
env:
42-
LDK_SWIFT_GENERATOR_INPUT_HEADER_PATH: bindings/artifacts/ldk-c-bindings/lightning-c-bindings/include/lightning.h
4+
using: composite
5+
steps:
6+
- name: Install Homebrew Dependencies
7+
shell: bash
8+
run: |
9+
brew install gnu-sed
10+
- name: Checkout Rust-Lightning and LDK-C-Bindings git
11+
shell: bash
12+
run: |
13+
echo `pwd`
14+
mkdir -p ./bindings/artifacts/bin
15+
git clone --branch 2022-06-108-java-bindings https://github.com/TheBlueMatt/rust-lightning ./bindings/artifacts/rust-lightning
16+
git clone --branch v0.0.108.2 https://github.com/lightningdevkit/ldk-c-bindings ./bindings/artifacts/ldk-c-bindings
17+
- name: Install Rust, required targets
18+
shell: bash
19+
run: |
20+
rustup toolchain install nightly
21+
rustup target add aarch64-apple-darwin aarch64-apple-ios x86_64-apple-ios
22+
rustup component add rust-src --toolchain nightly-x86_64-apple-darwin
23+
- name: Load Cache
24+
uses: actions/cache@v3
25+
with:
26+
path: |
27+
~/.cargo/bin/
28+
~/.cargo/registry/index/
29+
~/.cargo/registry/cache/
30+
~/.cargo/git/db/
31+
target/
32+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
33+
- name: Generate C Bindings
34+
shell: bash
35+
run: |
36+
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
37+
pushd bindings/artifacts/ldk-c-bindings
38+
./genbindings.sh ../rust-lightning true
39+
popd
40+
- name: Generate Swift Bindings
41+
shell: bash
42+
run: |
43+
python3 ./
44+
env:
45+
LDK_SWIFT_GENERATOR_INPUT_HEADER_PATH: bindings/artifacts/ldk-c-bindings/lightning-c-bindings/include/lightning.h
Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
name: Build Frameworks
22
permissions:
3-
contents: read
4-
statuses: read
5-
pull-requests: read
6-
actions: read
7-
checks: write
3+
contents: read
4+
statuses: read
5+
pull-requests: read
6+
actions: read
7+
checks: write
88
on:
9-
push:
10-
branches:
11-
- main
12-
pull_request:
13-
branches:
14-
- "*"
9+
push:
10+
branches:
11+
- main
12+
pull_request:
13+
branches:
14+
- "*"
1515

1616
jobs:
17-
build:
18-
name: Build Framework (${{ matrix.configuration['platform'] }})
19-
runs-on: macos-12
20-
strategy:
21-
fail-fast: false
22-
matrix:
23-
configuration:
24-
- scheme: LDKFramework
25-
destination: generic/platform=iOS
26-
platform: iOS
27-
workspace: LDKFramework.xcworkspace
28-
- scheme: LDKFramework
29-
destination: platform=iOS Simulator,OS=15.2,name=iPhone 13 Pro
30-
platform: iOS Simulator
31-
workspace: LDKFramework.xcworkspace
32-
- scheme: LDKFramework_Mac
33-
destination: generic/platform=OS X
34-
platform: OS X
35-
workspace: LDKFramework.xcworkspace
36-
- scheme: LDKFramework
37-
destination: platform=macOS,variant=Mac Catalyst,arch=x86_64
38-
platform: Mac Catalyst
39-
workspace: LDKFramework.xcworkspace
40-
env:
41-
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer
42-
LDK_C_BINDINGS_BASE: /home/runner/work/ldk-swift/ldk-swift/ci/ldk-c-bindings
43-
LDK_C_BINDINGS_BINARY_DIRECTORY: /home/runner/work/ldk-swift/ldk-swift/xcode/LDK
44-
steps:
45-
- name: Configure Xcode
46-
uses: maxim-lobanov/setup-xcode@v1
47-
with:
48-
xcode-version: latest
49-
- name: Checkout
50-
uses: actions/checkout@v2
51-
- name: Install Dependencies
52-
uses: ./.github/actions/install-dependencies
53-
- name: Build
54-
id: build
55-
uses: ./.github/actions/build-for-testing
56-
with:
57-
workspace: ${{ matrix.configuration['workspace'] }}
58-
scheme: ${{ matrix.configuration['scheme'] }}
59-
destination: ${{ matrix.configuration['destination'] }}
17+
build:
18+
name: Build Framework (${{ matrix.configuration['platform'] }})
19+
runs-on: macos-12
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
configuration:
24+
- scheme: LDKFramework
25+
destination: generic/platform=iOS
26+
platform: iOS
27+
workspace: LDKFramework.xcworkspace
28+
- scheme: LDKFramework
29+
destination: platform=iOS Simulator,OS=15.2,name=iPhone 13 Pro
30+
platform: iOS Simulator
31+
workspace: LDKFramework.xcworkspace
32+
- scheme: LDKFramework_Mac
33+
destination: generic/platform=OS X
34+
platform: OS X
35+
workspace: LDKFramework.xcworkspace
36+
- scheme: LDKFramework
37+
destination: platform=macOS,variant=Mac Catalyst,arch=x86_64
38+
platform: Mac Catalyst
39+
workspace: LDKFramework.xcworkspace
40+
env:
41+
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer
42+
LDK_C_BINDINGS_BASE: /Users/runner/work/ldk-swift/ldk-swift/bindings/artifacts/ldk-c-bindings
43+
LDK_C_BINDINGS_BINARY_DIRECTORY: /Users/runner/work/ldk-swift/ldk-swift/bindings/artifacts/bin
44+
steps:
45+
- name: Configure Xcode
46+
uses: maxim-lobanov/setup-xcode@v1
47+
with:
48+
xcode-version: latest
49+
- name: Checkout
50+
uses: actions/checkout@v2
51+
- name: Install Dependencies
52+
uses: ./.github/actions/install-dependencies
53+
- name: Build
54+
id: build
55+
uses: ./.github/actions/build-for-testing
56+
with:
57+
workspace: ${{ matrix.configuration['workspace'] }}
58+
scheme: ${{ matrix.configuration['scheme'] }}
59+
destination: ${{ matrix.configuration['destination'] }}

0 commit comments

Comments
 (0)