From 47ab1cc1bf9f871678a858cdba49b51bf6e00946 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 3 Sep 2023 14:50:00 -0700 Subject: [PATCH] Setting up actions --- .github/build.yml | 23 +++++++++++++++++++++++ Dockerfile | 11 +++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/build.yml create mode 100644 Dockerfile diff --git a/.github/build.yml b/.github/build.yml new file mode 100644 index 0000000..7fd9c81 --- /dev/null +++ b/.github/build.yml @@ -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 . diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cb043c2 --- /dev/null +++ b/Dockerfile @@ -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