GitHub Actions
Weizhong Yang a.k.a zonble
GitHub Actions
• GitHub 的 CI

• 也是寫⼀一個 YAML,在 push 等時機執⾏行行

• 整合在 GitHub 介⾯面當中

• 泛⽤用於各種不同的專案,⽽而 Bitrise/AppCenter 更更專注在
Mobile App

• iOS 開發⽅方⾯面,適合 Library 的開發
優點
• 編譯速度感覺比 Travis 快…

• 有很多現成寫好的 Actions 可以⽤用

• Actions 就是⼀一種特別格式的 GitHub Repo

• 當中是⼀一連串串的動作

• 可以在你的 YAML 中透過 “use:” 語法呼叫
Xcode 版本
• macOS image ⽬目前只⽀支援到 macOS 10.14

• 可以使⽤用環境變數指定 Xcode 版本
在專案中增加

Github Actions ⽀支援
• 建立 .github ⽬目錄

• 在裡頭建立 workflows ⽬目錄

• 在 workflows ⽬目錄裡頭放 *.yml 檔案
開發⾃自⼰己的 Github Actions
• 有兩兩種⽅方案

• JavaScript Action

• Docker Action

• 只能夠在 Linux Image 上使⽤用
Swift Package
Cocoa Pods
Dart
GitBook
Jazzy
相關⽂文件
• 申請使⽤用 https://github.com/features/actions

• 說明⽂文件 https://help.github.com/en/categories/
automating-your-workflow-with-github-actions

Github Actions