Skip to content

Commit 7c20b09

Browse files
authored
Release updates (#102)
* Update RELEASING.md * Use "uname -m" as "--machine" doesn't work on Darwin * Update Dockerfile to use swift 5.10 * Update versions for new release * Text update * Update to swift 5.10
1 parent 5cc28c9 commit 7c20b09

12 files changed

+35
-19
lines changed

RELEASING.md

+22-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
1-
# Releasing swiftly
1+
# Releasing
2+
3+
Swiftly and the swiftly-install release script have different release schedules and their version numbers do not correspond. Below is instructions for releasing each.
4+
5+
## Releasing swiftly
26

37
1. Check out the commit you wish to create a release for. Ensure no other local modifications or changes are present.
48

5-
1. Ensure the version string in `Swiftly.swift` is accurate. If it is not, push another commit updating it to the proper value.
9+
2. Ensure the version string in `SwiftlyCore/SwiftlyCore.swift` is accurate. If it is not, push another commit updating it to the proper value.
10+
11+
3. Create a tag on that commit with the format "x.y.z". Do not omit "z", even if its value is 0.
12+
13+
4. Build the executables for the release by running ./scripts/build_release.sh from the root of the swiftly repository (do this once on an x86_64 machine and once on an aarch64 one)
14+
15+
5. Push the tag to `origin`. `git push origin <tag_name>`
16+
17+
6. Go to the GitHub page for the new tag, click edit tag, add an appropriate description, attach the prebuilt executables, and click "Publish Release".
18+
19+
## Releasing swiftly-install
20+
21+
1. Check out the commit you wish to create a release for. Ensure no other local modifications or changes are present.
622

7-
1. Create a tag on that commit with the format "x.y.z". Do not omit "z", even if its value is 0.
23+
2. Ensure the version string `SWIFTLY_INSTALL_VERSION` in `install/swiftly-install.sh` is accurate. If it is not, push another commit updating it to the proper value.
824

9-
1. Build the executables for the release by running ./scripts/build_release.sh from the root of the swiftly repository (do this once on an x86_64 machine and once on an aarch64 one)
25+
3. Create a tag on that commit with the format "swiftly-install-x.y.z". Do not omit "z", even if its value is 0.
1026

11-
1. Push the tag to `origin`.
27+
4. Push the tag to `origin`. `git push origin <tag_name>`
1228

13-
1. Go to the GitHub page for the new tag, click edit tag, add an appropriate description, attach the prebuilt executables, and click "Publish Release".
29+
5. Copy `install/swiftly-install.sh` to website branch of repository

Sources/SwiftlyCore/SwiftlyCore.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public let version = SwiftlyVersion(major: 0, minor: 2, patch: 0)
3+
public let version = SwiftlyVersion(major: 0, minor: 3, patch: 0)
44

55
/// A separate home directory to use for testing purposes. This overrides swiftly's default
66
/// home directory location logic.

docker/docker-compose.1804.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
image: swiftly:18.04-test
77
build:
88
args:
9-
base_image: "swift:5.8-bionic"
9+
base_image: "swift:5.10-bionic"
1010

1111
test:
1212
image: swiftly:18.04-test

docker/docker-compose.2204.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
image: swiftly:22.04-test
77
build:
88
args:
9-
base_image: "swift:5.8-jammy"
9+
base_image: "swift:5.10-jammy"
1010

1111
test:
1212
image: swiftly:22.04-test

docker/docker-compose.amazonlinux2.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
context: ..
99
dockerfile: docker/test-amazonlinux2.dockerfile
1010
args:
11-
base_image: "swift:5.8-amazonlinux2"
11+
base_image: "swift:5.10-amazonlinux2"
1212

1313
test:
1414
image: swiftly:amazonlinux2-test

docker/docker-compose.ubi9.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
context: ..
99
dockerfile: docker/test-ubi9.dockerfile
1010
args:
11-
base_image: "swift:5.8-rhel-ubi9"
11+
base_image: "swift:5.10-rhel-ubi9"
1212

1313
test:
1414
image: swiftly:ubi9-test

docker/test-amazonlinux2.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG base_image=swift:5.8-amazonlinux2
1+
ARG base_image=swift:5.10-amazonlinux2
22
FROM $base_image
33
# needed to do again after FROM due to docker limitation
44
ARG swift_version

docker/test-ubi9.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG base_image=swift:5.8-rhel-ubi9
1+
ARG base_image=swift:5.10-rhel-ubi9
22
FROM $base_image
33
# needed to do again after FROM due to docker limitation
44
ARG swift_version

docker/test.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG swift_version=5.8
1+
ARG swift_version=5.10
22
ARG ubuntu_version=jammy
33
ARG base_image=swift:$swift_version-$ubuntu_version
44
FROM $base_image

install/swiftly-install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ verify_getopt_install () {
320320
return "$?"
321321
}
322322

323-
SWIFTLY_INSTALL_VERSION="0.3.0"
323+
SWIFTLY_INSTALL_VERSION="0.4.0"
324324

325325
MODIFY_PROFILE="true"
326326
SWIFTLY_INSTALL_SYSTEM_DEPS="true"

scripts/build.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Dockerfile used to build a statically-linked swiftly executable for generic GNU/Linux platforms.
22
# See RELEASING.md for information on how to use this file.
33

4-
FROM swift:5.8.1-amazonlinux2
4+
FROM swift:5.10-amazonlinux2
55

66
# swiftly build depdenencies
77
RUN yum install -y \

scripts/build_release.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ set -o errexit
55
version="$1"
66

77
if [[ -z "$version" ]]; then
8-
echo "Usage: build.sh <version tag>"
8+
echo "Usage: build_release.sh <version tag>"
99
exit 1
1010
fi
1111

12-
raw_arch="$(uname --machine)"
12+
raw_arch="$(uname -m)"
1313
case "$raw_arch" in
1414
"x86_64")
1515
arch="x86_64"
@@ -20,7 +20,7 @@ case "$raw_arch" in
2020
;;
2121

2222
*)
23-
echo "Error: Unsupported CPU architecture: $RAW_ARCH"
23+
echo "Error: Unsupported CPU architecture: $raw_arch"
2424
;;
2525
esac
2626

0 commit comments

Comments
 (0)