Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/.github/workflows/ci.yaml

109 lines
2.7 KiB
YAML
Raw Normal View History

2020-05-07 06:06:55 +02:00
name: ci
on: [push, pull_request]
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run ./ci/steps/fmt.sh
uses: ./ci/container
with:
args: ./ci/steps/fmt.sh
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run ./ci/steps/lint.sh
uses: ./ci/container
with:
args: ./ci/steps/lint.sh
2020-05-08 02:44:32 +02:00
test:
runs-on: ubuntu-latest
2020-05-07 06:06:55 +02:00
steps:
- uses: actions/checkout@v1
2020-05-08 02:44:32 +02:00
- name: Run ./ci/steps/test.sh
uses: ./ci/container
with:
args: ./ci/steps/test.sh
release:
2020-05-08 02:44:32 +02:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run ./ci/steps/release.sh
uses: ./ci/container
with:
args: ./ci/steps/release.sh
- name: Upload npm package artifact
uses: actions/upload-artifact@v2
with:
name: npm-package
path: ./release
linux-amd64:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Download npm package
uses: actions/download-artifact@v2
with:
name: npm-package
path: ./release
- name: Run ./ci/steps/release-static.sh
uses: ./ci/container
with:
args: ./ci/steps/release-static.sh
- name: Upload release artifacts
uses: actions/upload-artifact@v2
with:
name: release-packages
path: ./release-packages
2020-05-08 02:44:32 +02:00
linux-arm64:
needs: release
2020-05-08 02:44:32 +02:00
runs-on: ubuntu-arm64-latest
steps:
- uses: actions/checkout@v1
- name: Download npm package
uses: actions/download-artifact@v2
with:
name: npm-package
path: ./release
- name: Run ./ci/steps/release-static.sh
2020-05-08 02:44:32 +02:00
uses: ./ci/container
with:
args: ./ci/steps/release-static.sh
2020-05-08 02:44:32 +02:00
- name: Upload release artifacts
uses: actions/upload-artifact@v2
with:
name: release-packages
path: ./release-packages
2020-05-08 02:44:32 +02:00
2020-05-08 07:42:46 +02:00
macos-amd64:
needs: release
2020-05-08 02:44:32 +02:00
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Download npm package
uses: actions/download-artifact@v2
with:
name: npm-package
path: ./release
2020-05-08 02:44:32 +02:00
- run: brew unlink node@12
- run: brew install node
- run: ./ci/steps/release-static.sh
2020-05-08 02:44:32 +02:00
env:
# Otherwise we get rate limited when fetching the ripgrep binary.
2020-05-08 22:31:42 +02:00
# For whatever reason only MacOS needs it.
2020-05-08 09:08:30 +02:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-05-08 02:44:32 +02:00
- name: Upload release artifacts
uses: actions/upload-artifact@v2
2020-05-07 06:06:55 +02:00
with:
name: release-packages
path: ./release-packages