Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
orobio committed Mar 29, 2024
1 parent 2545838 commit d82e42c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 280 deletions.
66 changes: 3 additions & 63 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
build-swift-armv7:
name: Build Swift
runs-on: [Linux, X64]
container: colemancda/swift-armv7
container: orobio/swift-armv7:5.10
timeout-minutes: 480
steps:
- name: Checkout
Expand All @@ -14,71 +14,11 @@ jobs:
run: swift --version
- name: Build
run: |
export SWIFT_NATIVE_PATH=/opt/swift/5.10/usr/bin
export SRC_ROOT=$GITHUB_WORKSPACE
rm -rf /usr/bin/swift-def-to-yaml-converter
ln -s $SRC_ROOT/build/swift-linux-armv7/bin/swift-def-to-yaml-converter /usr/bin/swift-def-to-yaml-converter
rm -rf /usr/bin/swift-serialize-diagnostics
ln -s $SRC_ROOT/build/swift-linux-armv7/bin/swift-serialize-diagnostics /usr/bin/swift-serialize-diagnostics
./build.sh
- name: Archive Swift Build artifacts
uses: actions/upload-artifact@v3
with:
name: swift-armv7
path: ./build/swift-armv7.tar.gz

build-xctoolchain-armv7:
name: Build Xcode toolchain
runs-on: macos-latest
needs: build-swift-armv7
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Swift Version
run: swift --version
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: swift-armv7
path: ./build/
- name: Generate Xcode toolchain
run: |
export SRC_ROOT=$GITHUB_WORKSPACE
./generate-xcode-toolchain.sh
- name: Cross compile Swift package
run: |
export SRC_ROOT=$GITHUB_WORKSPACE
./build-swift-hello.sh
- name: Archive swift-hello
uses: actions/upload-artifact@v3
with:
name: swift-hello
path: ./build/swift-hello/armv7-unknown-linux-gnueabihf/release/swift-hello

test-swift-hello-armv7:
name: Test Swift runtime
runs-on: [self-hosted, Linux, ARM]
container: colemancda/swift-armv7:latest-runtime
needs: build-xctoolchain-armv7
steps:
- name: Download Swift runtime
uses: actions/download-artifact@v3
with:
name: swift-armv7
path: /tmp/
- name: Install Swift
run: |
rm -rf /usr/lib/swift*
rm -rf /usr/bin/swift*
cd /tmp/
tar -xf /tmp/swift-armv7.tar.gz
cp -rf /tmp/usr/* /usr/
rm -rf /tmp/usr
- name: Download swift-hello
uses: actions/download-artifact@v3
with:
name: swift-hello
path: /tmp/
- name: Test
run: |
chmod +x /tmp/swift-hello
/tmp/swift-hello
path: ./workspace/build/swift-armv7.tar.gz
130 changes: 0 additions & 130 deletions .github/workflows/deploy.yml

This file was deleted.

87 changes: 0 additions & 87 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit d82e42c

Please sign in to comment.