Skip to content

Commit

Permalink
bump builds to use swift:5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliankoe committed Mar 24, 2024
1 parent 65c8da8 commit a495d05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker container
run: |
docker pull swift:5.7
- name: Set up Docker container
run: |
docker pull swift:5.9
- name: Build SwiftDEBot
run: |
docker run --rm -v "$(pwd):/src" -w /src swift:5.7 swift build --configuration release
- name: Build SwiftDEBot
run: |
docker run --rm -v "$(pwd):/src" -w /src swift:5.9 swift build --configuration release
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM swift:5.7 AS build
FROM swift:5.9 AS build

WORKDIR /app
COPY . ./
RUN swift build --configuration release

FROM swift:5.7-slim
FROM swift:5.9-slim
WORKDIR /app
COPY --from=build /app/.build/release/SwiftDEBot .

Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// swift-tools-version:5.7
// swift-tools-version:5.9

import PackageDescription

let package = Package(
name: "SwiftDEBot",
platforms: [
.macOS(.v12),
.macOS(.v13),
],
dependencies: [
.package(url: "https://github.com/MahdiBM/DiscordBM", exact: "1.0.0-beta.49"),
Expand Down

0 comments on commit a495d05

Please sign in to comment.