forked from uraimo/run-on-arch-action
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 875 Bytes
/
swift-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Build with Swift on armv7
on: [push, pull_request]
jobs:
testactions_job:
runs-on: ubuntu-18.04
name: A job to test the multi architecture actions
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: ./
with:
arch: armv7
distro: ubuntu18.04
githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt install -q -y libatomic1 libbsd0 clang libicu-dev libcurl4-nss-dev curl
curl -L https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.3/swift-5.0.3-armv7-Ubuntu1804.tgz -o /root/swift-5.0.3-armv7-Ubuntu1804.tgz
run: |
cd /root
tar xzf swift-5.0.3-armv7-Ubuntu1804.tgz
echo "import Glibc;puts(\"Test!\");print(\"Test!!\")" > test.swift
./usr/bin/swiftc test.swift
./test