Skip to content

Commit

Permalink
Setting up actions
Browse files Browse the repository at this point in the history
  • Loading branch information
csjones committed Sep 3, 2023
1 parent 79f80fd commit 47ab1cc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
macOS:
name: Test
runs-on: macOS-13
steps:
- uses: actions/checkout@v3
- name: List available plugins in macOS
run: swift package plugin --list

Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image
run: docker build .
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Use an official Swift runtime image
FROM swift:5.8.1

# Copies the root directory of the repository into the image's filesystem at `/Linux`
ADD . /Linux

# Set the working directory to `/Linux`
WORKDIR /Linux

# List available plugins in Linux
RUN swift package plugin --list

0 comments on commit 47ab1cc

Please sign in to comment.