Skip to content

Commit e9b86fe

Browse files
committed
OpenBSD
1 parent 920a85b commit e9b86fe

2 files changed

Lines changed: 70 additions & 1 deletion

File tree

.github/workflows/openbsd.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: OpenBSD/amd64 build (7.8)
2+
3+
on: [push]
4+
5+
env:
6+
META_DATA_CONTENT: |
7+
{
8+
"instance-id": "iid-local01",
9+
"dsmode": "local"
10+
}
11+
USER_DATA_CONTENT: |
12+
#cloud-config
13+
timezone: UTC
14+
write_files:
15+
- content: |
16+
set -ex
17+
function atexit {
18+
echo 1 > /tmp/result
19+
tar cvf /dev/sd1c -C /tmp result
20+
halt -p;
21+
}
22+
trap atexit EXIT
23+
printf '\033\143'
24+
export PATH=/usr/local/bin:$PATH
25+
mount /dev/sd3c /mnt
26+
cp -r /mnt/repo /home/repo/
27+
cd /home/repo/
28+
swift test
29+
echo $? > /tmp/result
30+
tar cvf /dev/sd1c -C /tmp result
31+
halt -p
32+
path: /etc/rc.local
33+
permissions: '0755'
34+
35+
jobs:
36+
openbsd:
37+
name: OpenBSD
38+
runs-on: ubuntu-latest
39+
timeout-minutes: 30
40+
container:
41+
image: ghcr.io/3405691582/openbsd-swift-amd64:7.8
42+
env:
43+
CPU: "4"
44+
MEM: "16G"
45+
KVM: "-enable-kvm"
46+
options: --device /dev/kvm
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v6
50+
51+
- name: Write cloud-init files
52+
run: |
53+
echo "$META_DATA_CONTENT" > /usr/local/share/cidata/meta-data
54+
echo "$USER_DATA_CONTENT" > /usr/local/share/cidata/user-data
55+
56+
- name: Prepare cloud-init
57+
run: |
58+
cp -r $GITHUB_WORKSPACE /usr/local/share/cidata/repo/ && \
59+
cat /usr/local/share/cidata/meta-data && \
60+
cat /usr/local/share/cidata/user-data && \
61+
ls /usr/local/share/cidata
62+
63+
- name: Run
64+
run: /usr/local/bin/cmd.sh
65+
66+
- name: Report
67+
run: |
68+
ls -l /usr/local/share/tape && \
69+
exit $(cat /usr/local/share/tape/result)

Tests/SWBUtilTests/FSProxyTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ import SystemPackage
591591
}
592592
}
593593

594-
@Test(.skipHostOS(.windows), .skipHostOS(.freebsd, "Blocked on https://github.com/swiftlang/swift/pull/77836"))
594+
@Test(.skipHostOS(.windows), .skipHostOS(.freebsd, "Blocked on https://github.com/swiftlang/swift/pull/77836"), .skipHostOS(.openbsd, "OpenBSD no longer supports extended attributes"))
595595
func extendedAttributesSupport() throws {
596596
try withTemporaryDirectory { (tmpDir: Path) in
597597
// Many filesystems on other platforms (e.g. various non-ext4 temporary filesystems on Linux) don't support xattrs and will return ENOTSUP.

0 commit comments

Comments
 (0)