Skip to content

Commit

Permalink
Merge pull request #8 from kkk669/add-ci
Browse files Browse the repository at this point in the history
ci: add CI
  • Loading branch information
kkebo authored Mar 4, 2024
2 parents 53f7fd1 + b0268ca commit c903b6f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: ci
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-linux:
runs-on: ubuntu-latest
container: swiftlang/swift:nightly-main-jammy
steps:
- uses: actions/checkout@v4
- run: apt-get update && apt-get install --no-install-recommends -y make llvm
- run: make
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ SWIFT := swift
AS := clang -x assembler
ASFLAGS := -target $(TRIPLE) -c
LD := clang -fuse-ld=lld
LDFLAGS := -nostdlib -Wl,-gc-sections -static -lgcc
OBJCOPY := objcopy
LDFLAGS := -target $(TRIPLE) -nostdlib -Wl,-gc-sections -static
OBJCOPY := llvm-objcopy
QEMU := qemu-system-aarch64

.PHONY: all
Expand Down
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let package = Package(
swiftSettings: [
.enableExperimentalFeature("Embedded"),
.unsafeFlags(["-Xfrontend", "-no-allocations"]),
.unsafeFlags(["-Xfrontend", "-function-sections"]),
.unsafeFlags(["-Xfrontend", "-disable-stack-protector"]),
.unsafeFlags(["-swift-version", "6"]),
.define("RASPI3"),
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ An operating system written in Swift.
- Arch Linux: `sudo pacman -S make`
- Fedora: `sudo dnf install make`
- Ubuntu: `sudo apt install make`
- GNU Binutils
- Arch Linux: `sudo pacman -S binutils`
- Fedora: `sudo dnf install binutils`
- Ubuntu: `sudo apt install binutils`
- llvm-objcopy
- Arch Linux: `sudo pacman -S llvm`
- Fedora: `sudo dnf install llvm`
- Ubuntu: `sudo apt install llvm`
- QEMU
- Arch Linux: `sudo pacman -S qemu-system-aarch64`
- Fedora: `sudo dnf install qemu-system-aarch64-core`
Expand Down

0 comments on commit c903b6f

Please sign in to comment.