未验证 提交 61d1af04 编写于 作者: A Anmol Sethi

Add macOS release step

上级 4aa15401
......@@ -11,7 +11,6 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
......@@ -21,7 +20,9 @@ jobs:
- name: Run yarn fmt
uses: ./ci/image
with:
args: yarn && yarn fmt
args: yarn && yarn vscode && yarn fmt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint:
runs-on: ubuntu-latest
......@@ -32,7 +33,6 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
......@@ -42,9 +42,33 @@ jobs:
- name: Run yarn lint
uses: ./ci/image
with:
args: yarn && yarn lint
args: yarn && yarn vscode && yarn lint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-amd64:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run yarn test
uses: ./ci/image
with:
args: yarn && yarn vscode && yarn test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-linux-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
......@@ -53,7 +77,6 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
......@@ -64,3 +87,25 @@ jobs:
uses: ./ci/image
with:
args: yarn && yarn vscode && ./ci/release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run release.sh
run: yarn && yarn vscode && ./ci/release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
......@@ -3,11 +3,6 @@
set -euo pipefail
main() {
if [[ ${CI-} ]]; then
cd "$(dirname "$0")/.."
./ci/vscode.sh
fi
shfmt -i 2 -w -s -sr $(git ls-files "*.sh")
local prettierExts
......
FROM node:12-buster
FROM node:12
RUN apt-get update && apt-get install -y \
libxkbfile-dev \
libx11-dev \
libsecret-1-dev \
dumb-init
......
......@@ -3,11 +3,6 @@
set -euo pipefail
main() {
if [[ ${CI-} ]]; then
cd "$(dirname "$0")/.."
./ci/vscode.sh
fi
eslint --max-warnings=0 --fix $(git ls-files "*.ts" "*.tsx" "*.js")
stylelint --fix $(git ls-files "*.css")
tsc --noEmit
......
此差异已折叠。
......@@ -10,7 +10,7 @@
"test": "mocha -r ts-node/register ./test/*.test.ts",
"lint": "ci/lint.sh",
"fmt": "ci/fmt.sh",
"runner": "cd ./scripts && NODE_OPTIONS=--max_old_space_size=32384 ts-node ./build.ts",
"runner": "cd ./ci && NODE_OPTIONS=--max_old_space_size=32384 ts-node ./build.ts",
"build": "yarn runner build",
"watch": "yarn runner watch",
"binary": "yarn runner binary",
......
......@@ -10,17 +10,8 @@ body {
background: #272727;
color: #f4f4f4;
margin: 0;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Helvetica,
Arial,
sans-serif,
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol";
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol";
overflow: hidden;
}
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册