Skip to content

Commit d58bb62

Browse files
committed
Renaming bsd to freebsd since all bsds are different
1 parent b8c6c15 commit d58bb62

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
- remote_host: debian-11-armhf
3434
installer: deb
3535
- remote_host: freebsd-13.1
36-
installer: bsd
36+
installer: freebsd
3737
- remote_host: freebsd-14
38-
installer: bsd
38+
installer: freebsd
3939
- remote_host: openbsd-7-5
4040
installer: openbsd
4141

@@ -51,24 +51,24 @@ jobs:
5151
git fetch --all
5252
git fetch -f --prune --tags
5353
git reset --hard ${{ github.sha }}
54-
if [[ '${{ matrix.installer }}' == 'bsd' ]]; then
54+
if [[ '${{ matrix.installer }}' == 'freebsd' ]]; then
5555
mkdir -p out
5656
echo "::group::AMD64"
5757
[ -d "out/amd64" ] && tools/uncache out/amd64
5858
cmake -S . -B out/amd64 -DCMAKE_BUILD_TYPE=RelWithDebInfo
59-
installers/bsd/build.py . out/amd64
59+
installers/freebsd/build.py . out/amd64
6060
echo "::endgroup::"
6161
6262
echo "::group::ARM64"
63-
installers/bsd/make-toolchain.py arm64 out/toolchain-arm64
63+
installers/freebsd/make-toolchain.py arm64 out/toolchain-arm64
6464
[ -d "out/arm64" ] && tools/uncache out/arm64
6565
cmake -S . -B out/arm64 -DCMAKE_TOOLCHAIN_FILE=out/toolchain-arm64/toolchain.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
66-
installers/bsd/build.py --arch=aarch64 . out/arm64
66+
installers/freebsd/build.py --arch=aarch64 . out/arm64
6767
echo "::endgroup::"
6868
elif [[ '${{ matrix.installer }}' == 'openbsd' ]]; then
6969
[ -d "out" ] && tools/uncache out
7070
cmake -S . -B out -DCMAKE_BUILD_TYPE=RelWithDebInfo
71-
installers/${{ matrix.installer }}/build.py . out
71+
installers/openbsd/build.py . out
7272
else
7373
[ -d "out" ] && tools/uncache out
7474
cmake -S . -B out -DCMAKE_BUILD_TYPE=RelWithDebInfo

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
- remote_host: debian-11-armhf
3434
installer: deb
3535
- remote_host: freebsd-13.1
36-
installer: bsd
36+
installer: freebsd
3737
- remote_host: freebsd-14
38-
installer: bsd
38+
installer: freebsd
3939
- remote_host: openbsd-7-5
4040
installer: openbsd
4141

@@ -52,19 +52,19 @@ jobs:
5252
git fetch -f --prune --tags
5353
git reset --hard ${{ github.sha }}
5454
export GH_TOKEN=${{ secrets.GITHUB_TOKEN }}
55-
if [[ '${{ matrix.installer }}' == 'bsd' ]]; then
55+
if [[ '${{ matrix.installer }}' == 'freebsd' ]]; then
5656
mkdir -p out
5757
echo "::group::AMD64"
5858
[ -d "out/amd64" ] && tools/uncache out/amd64
5959
cmake -S . -B out/amd64 -DCMAKE_BUILD_TYPE=RelWithDebInfo
60-
installers/bsd/build.py --upload-results . out/amd64
60+
installers/freebsd/build.py --upload-results . out/amd64
6161
echo "::endgroup::"
6262
6363
echo "::group::ARM64"
64-
installers/bsd/make-toolchain.py arm64 out/toolchain-arm64
64+
installers/freebsd/make-toolchain.py arm64 out/toolchain-arm64
6565
[ -d "out/arm64" ] && tools/uncache out/arm64
6666
cmake -S . -B out/arm64 -DCMAKE_TOOLCHAIN_FILE=out/toolchain-arm64/toolchain.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
67-
installers/bsd/build.py --arch=aarch64 --upload-results . out/arm64
67+
installers/freebsd/build.py --arch=aarch64 --upload-results . out/arm64
6868
echo "::endgroup::"
6969
else
7070
[ -d "out" ] && tools/uncache out
File renamed without changes.

installers/bsd/build.py renamed to installers/freebsd/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
else:
5151
VERSION = getVersion(builddir)
5252

53-
workdir = builddir / 'stage/bsd'
53+
workdir = builddir / 'stage/freebsd'
5454
stagedir = workdir / 'root'
5555
shutil.rmtree(workdir, ignore_errors=True)
5656
stagedir.mkdir(parents=True)
5757

5858
installCode(builddir, stagedir / 'usr/local')
5959

60-
shutil.copytree(srcdir / 'config/bsd/usr', stagedir / 'usr', dirs_exist_ok=True)
60+
shutil.copytree(srcdir / 'config/freebsd/usr', stagedir / 'usr', dirs_exist_ok=True)
6161

6262
copyTemplated(mydir.parent / 'wsddn.conf', stagedir / 'usr/local/etc/wsddn.conf.sample', {
6363
'SAMPLE_IFACE_NAME': "hn0",
@@ -82,7 +82,7 @@
8282
prefix: /
8383
""".lstrip())
8484

85-
with open(workdir / 'plist', 'w') as plist:
85+
with open(workdir / 'plist', 'w', encoding='utf-8') as plist:
8686
for item in stagedir.glob('**/*'):
8787
if not item.is_dir():
8888
print(str(item.relative_to(stagedir)), file=plist)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)