Removed the Github CI actions (temporarily!) from the project.
This commit is contained in:
@@ -1,99 +0,0 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
# The SDK is downloaded from Panic (it is not redistributable). Only the
|
||||
# C_API headers are used, so the Linux tarball works on every runner.
|
||||
PLAYDATE_SDK_VERSION: "3.1.1"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Build & test (macOS)
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# The manifest requires Swift 6.4 tools; pick the newest Xcode on the
|
||||
# runner. Adjust if the image's default already suffices.
|
||||
- uses: maxim-lobanov/setup-xcode@v1
|
||||
with:
|
||||
xcode-version: latest
|
||||
|
||||
- name: Cache Playdate SDK
|
||||
id: sdk-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/PlaydateSDK
|
||||
key: playdate-sdk-${{ env.PLAYDATE_SDK_VERSION }}
|
||||
|
||||
- name: Download Playdate SDK headers
|
||||
if: steps.sdk-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
curl -sL "https://download.panic.com/playdate_sdk/Linux/PlaydateSDK-${PLAYDATE_SDK_VERSION}.tar.gz" | tar xz -C "$HOME"
|
||||
mv "$HOME/PlaydateSDK-${PLAYDATE_SDK_VERSION}" "$HOME/PlaydateSDK"
|
||||
test -f "$HOME/PlaydateSDK/C_API/pd_api.h"
|
||||
|
||||
- name: Install pkg-config module
|
||||
run: |
|
||||
PLAYDATE_SDK_PATH="$HOME/PlaydateSDK" Scripts/install-pkgconfig.sh "$HOME/pkgconfig"
|
||||
echo "PKG_CONFIG_PATH=$HOME/pkgconfig" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Build
|
||||
run: swift build
|
||||
|
||||
- name: Test
|
||||
run: swift test
|
||||
|
||||
- name: Consumer smoke test
|
||||
run: Scripts/consumer-test.sh
|
||||
|
||||
embedded:
|
||||
name: Embedded Swift cross-compile
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# Embedded Swift for bare-metal ARM needs a swift.org development
|
||||
# snapshot; release/Xcode toolchains do not ship that stdlib.
|
||||
- name: Install Swift main snapshot (swiftly)
|
||||
run: |
|
||||
curl -sL "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz" | tar xz
|
||||
./swiftly init -y --quiet-shell-followup
|
||||
. "$HOME/.local/share/swiftly/env.sh"
|
||||
swiftly install --use main-snapshot
|
||||
echo "$HOME/.local/share/swiftly/bin" >> "$GITHUB_PATH"
|
||||
|
||||
# newlib provides the libc headers pd_api.h includes on bare metal.
|
||||
- name: Install arm-none-eabi headers
|
||||
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libnewlib-arm-none-eabi
|
||||
|
||||
- name: Cache Playdate SDK
|
||||
id: sdk-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/PlaydateSDK
|
||||
key: playdate-sdk-${{ env.PLAYDATE_SDK_VERSION }}
|
||||
|
||||
- name: Download Playdate SDK headers
|
||||
if: steps.sdk-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
curl -sL "https://download.panic.com/playdate_sdk/Linux/PlaydateSDK-${PLAYDATE_SDK_VERSION}.tar.gz" | tar xz -C "$HOME"
|
||||
mv "$HOME/PlaydateSDK-${PLAYDATE_SDK_VERSION}" "$HOME/PlaydateSDK"
|
||||
test -f "$HOME/PlaydateSDK/C_API/pd_api.h"
|
||||
|
||||
- name: Install pkg-config module
|
||||
run: |
|
||||
PLAYDATE_SDK_PATH="$HOME/PlaydateSDK" Scripts/install-pkgconfig.sh "$HOME/pkgconfig"
|
||||
echo "PKG_CONFIG_PATH=$HOME/pkgconfig" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Cross-compile for armv7em-none-none-eabi
|
||||
run: Scripts/build-embedded.sh
|
||||
@@ -1,66 +0,0 @@
|
||||
name: Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: docs
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
PLAYDATE_SDK_VERSION: "3.1.1"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: maxim-lobanov/setup-xcode@v1
|
||||
with:
|
||||
xcode-version: latest
|
||||
|
||||
- name: Cache Playdate SDK
|
||||
id: sdk-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/PlaydateSDK
|
||||
key: playdate-sdk-${{ env.PLAYDATE_SDK_VERSION }}
|
||||
|
||||
- name: Download Playdate SDK headers
|
||||
if: steps.sdk-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
curl -sL "https://download.panic.com/playdate_sdk/Linux/PlaydateSDK-${PLAYDATE_SDK_VERSION}.tar.gz" | tar xz -C "$HOME"
|
||||
mv "$HOME/PlaydateSDK-${PLAYDATE_SDK_VERSION}" "$HOME/PlaydateSDK"
|
||||
test -f "$HOME/PlaydateSDK/C_API/pd_api.h"
|
||||
|
||||
- name: Install pkg-config module
|
||||
run: |
|
||||
PLAYDATE_SDK_PATH="$HOME/PlaydateSDK" Scripts/install-pkgconfig.sh "$HOME/pkgconfig"
|
||||
echo "PKG_CONFIG_PATH=$HOME/pkgconfig" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Generate documentation
|
||||
run: |
|
||||
swift package --allow-writing-to-directory docs \
|
||||
generate-documentation --target PlaydateKit \
|
||||
--disable-indexing \
|
||||
--transform-for-static-hosting \
|
||||
--hosting-base-path playdate-kit \
|
||||
--output-path docs
|
||||
|
||||
- uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: docs
|
||||
|
||||
- id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
Reference in New Issue
Block a user