2020-02-12 21:55:44 +03:00
|
|
|
|
|
|
|
name: macos_continuous
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2021-01-30 23:34:54 +03:00
|
|
|
- cron: "10 3 * * *"
|
|
|
|
push:
|
|
|
|
branches:
|
2021-02-04 08:51:01 +03:00
|
|
|
- main
|
2021-01-30 23:34:54 +03:00
|
|
|
paths-ignore:
|
2021-03-29 06:39:49 +03:00
|
|
|
- '.cirrus.yml'
|
2021-01-30 23:34:54 +03:00
|
|
|
- 'docs/**'
|
2021-02-20 21:57:37 +03:00
|
|
|
- 'ci/build-docs.sh'
|
|
|
|
- 'ci/generate-docs.py'
|
|
|
|
- 'ci/subst-release-info.py'
|
|
|
|
- '.github/workflows/pages.yml'
|
|
|
|
- '**/*.md'
|
2020-02-12 21:55:44 +03:00
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
2021-01-13 08:12:54 +03:00
|
|
|
runs-on: "macos-11.0"
|
2020-02-12 21:55:44 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "checkout repo"
|
2020-05-03 21:21:58 +03:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: "recursive"
|
|
|
|
- name: "Fetch tags"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
|
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Fetch tag/branch history"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
|
git fetch --prune --unshallow
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-12 21:55:44 +03:00
|
|
|
- name: "Install Rust"
|
2020-11-17 23:03:24 +03:00
|
|
|
uses: actions-rs/toolchain@v1
|
2020-02-12 21:55:44 +03:00
|
|
|
with:
|
|
|
|
profile: "minimal"
|
|
|
|
toolchain: "stable"
|
|
|
|
override: true
|
|
|
|
components: "rustfmt"
|
2020-11-17 04:28:37 +03:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
2021-01-13 08:12:54 +03:00
|
|
|
- name: "Install Rust (ARM)"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
|
rustup target add aarch64-apple-darwin
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-12 21:55:44 +03:00
|
|
|
- name: "Install System Deps"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
2021-03-29 06:33:32 +03:00
|
|
|
env PATH=$PATH ./get-deps
|
2020-02-12 21:55:44 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-13 08:12:54 +03:00
|
|
|
- name: "Build (Release mode Intel)"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
|
cargo build --target x86_64-apple-darwin --all --release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Build (Release mode ARM)"
|
2020-02-12 21:55:44 +03:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
2021-01-13 08:12:54 +03:00
|
|
|
cargo build --target aarch64-apple-darwin --all --release
|
2020-02-12 21:55:44 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Test (Release mode)"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
2021-01-13 08:12:54 +03:00
|
|
|
cargo test --target x86_64-apple-darwin --all --release
|
2020-02-12 21:55:44 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Package"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
|
bash ci/deploy.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Upload to Nightly Release"
|
2020-02-15 02:53:32 +03:00
|
|
|
uses: wez/upload-release-assets@releases/v1
|
2020-02-12 21:55:44 +03:00
|
|
|
with:
|
|
|
|
files: "WezTerm-*.zip"
|
2020-02-13 00:32:05 +03:00
|
|
|
release-tag: "nightly"
|
2020-02-12 21:55:44 +03:00
|
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|