Skip to content

Commit

Permalink
Add GitHub workflows for CI (#111)
Browse files Browse the repository at this point in the history
Adds GitHub Actions based workflows for Linux CI testing instead of
using Swift CI. Removes docker files.
  • Loading branch information
rauhul authored Aug 19, 2024
1 parent ffa2b75 commit 21dee8d
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 136 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Swift

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Swift (${{ matrix.swift.version }}) / Ubuntu (${{ matrix.os.version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- name: jammy
version: "22.04"
swift:
- repo: swift
version: "5.9"
- repo: swift
version: "5.10"
- repo: swiftlang/swift
version: "nightly-6.0"
- repo: swiftlang/swift
version: "nightly-main"
container: ${{ matrix.swift.repo }}:${{ matrix.swift.version }}-${{ matrix.os.name }}
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: apt-get -qq update && apt-get -qq -y install make
- name: Build & Test
run: make test CONFIGURATION=release

lint:
name: Lint
runs-on: ubuntu-latest
container: swiftlang/swift:nightly-6.0-jammy
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: apt-get -qq update && apt-get -qq -y install make
- name: Lint
run: make lint
21 changes: 2 additions & 19 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@
# This file is a list of the people responsible for ensuring that patches for a
# particular part of Swift are reviewed, either by themselves or by someone else.
# They are also the gatekeepers for their part of Swift, with the final word on
# what goes in or not.
#
# The list is sorted by surname and formatted to allow easy grepping and
# beautification by scripts. The fields are: name (N), email (E), web-address
# (W), PGP key ID and fingerprint (P), description (D), and snail-mail address
# (S).

# N: Rauhul Varma
# E: [email protected]
# D: Everything in swift-mmio not covered by someone else

###

# The following lines are used by GitHub to automatically recommend reviewers.

* @rauhul
* @rauhul
.github/workflows @rauhul @shahmishal
15 changes: 0 additions & 15 deletions Docker/Dockerfile

This file was deleted.

22 changes: 0 additions & 22 deletions Docker/docker-compose.2204.510.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions Docker/docker-compose.2204.59.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions Docker/docker-compose.2204.main.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions Docker/docker-compose.yaml

This file was deleted.

7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,13 @@ SKIP_LINT =
.PHONY: all lint format build test clean
all: test

ifdef SKIP_LINT
lint:
@echo "skipping linting..."
else
lint:
@echo "linting..."
@swift-format lint \
--configuration $(SWIFT_FORMAT_CONFIGURATION) \
--recursive \
--strict \
Package.swift Plugins Sources Tests
endif

format:
@echo "formatting..."
Expand All @@ -37,7 +32,7 @@ format:
--in-place \
Package.swift Plugins Sources Tests

build: lint
build:
@echo "building..."
@swift build \
--configuration $(CONFIGURATION) \
Expand Down

0 comments on commit 21dee8d

Please sign in to comment.