1
1
mirror of https://github.com/coder/code-server.git synced 2024-12-25 18:52:34 +03:00
code-server/.github/workflows/ci.yaml

147 lines
3.9 KiB
YAML
Raw Normal View History

2020-05-07 07:06:55 +03:00
name: ci
2020-05-19 05:43:31 +03:00
on: [push]
2020-05-07 07:06:55 +03:00
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run ./ci/steps/fmt.sh
uses: ./ci/images/debian10
with:
args: ./ci/steps/fmt.sh
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run ./ci/steps/lint.sh
uses: ./ci/images/debian10
with:
args: ./ci/steps/lint.sh
2020-05-08 03:44:32 +03:00
test:
runs-on: ubuntu-latest
2020-05-07 07:06:55 +03:00
steps:
- uses: actions/checkout@v1
2020-05-08 03:44:32 +03:00
- name: Run ./ci/steps/test.sh
uses: ./ci/images/debian10
2020-05-08 03:44:32 +03:00
with:
args: ./ci/steps/test.sh
release:
2020-05-08 03:44:32 +03:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run ./ci/steps/release.sh
uses: ./ci/images/debian10
2020-05-08 03:44:32 +03:00
with:
args: ./ci/steps/release.sh
- name: Upload npm package artifact
uses: actions/upload-artifact@v2
with:
name: npm-package
path: ./release-npm-package
2020-05-08 03:44:32 +03:00
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-npm-package
2020-05-28 01:04:36 +03:00
- name: Run ./ci/steps/release-packages.sh
2020-06-03 19:14:55 +03:00
uses: ./ci/images/centos7
with:
2020-05-28 01:04:36 +03:00
args: ./ci/steps/release-packages.sh
- name: Upload release artifacts
uses: actions/upload-artifact@v2
with:
name: release-packages
path: ./release-packages
2020-05-08 03:44:32 +03:00
linux-arm64:
needs: release
2020-05-08 03:44:32 +03: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-npm-package
2020-05-28 01:04:36 +03:00
- name: Run ./ci/steps/release-packages.sh
2020-06-03 19:14:55 +03:00
uses: ./ci/images/centos7
2020-05-08 03:44:32 +03:00
with:
2020-05-28 01:04:36 +03:00
args: ./ci/steps/release-packages.sh
2020-05-08 03:44:32 +03:00
- name: Upload release artifacts
uses: actions/upload-artifact@v2
with:
name: release-packages
path: ./release-packages
2020-05-08 03:44:32 +03:00
2020-05-08 08:42:46 +03:00
macos-amd64:
needs: release
2020-05-08 03:44:32 +03: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-npm-package
2020-05-28 01:04:36 +03:00
- run: ./ci/steps/release-packages.sh
2020-05-08 03:44:32 +03:00
env:
# Otherwise we get rate limited when fetching the ripgrep binary.
2020-05-08 23:31:42 +03:00
# For whatever reason only MacOS needs it.
2020-05-08 10:08:30 +03:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-05-08 03:44:32 +03:00
- name: Upload release artifacts
uses: actions/upload-artifact@v2
2020-05-07 07:06:55 +03:00
with:
name: release-packages
path: ./release-packages
docker-amd64:
runs-on: ubuntu-latest
needs: linux-amd64
steps:
- uses: actions/checkout@v1
- name: Download release package
uses: actions/download-artifact@v2
with:
name: release-packages
path: ./release-packages
- name: Run ./ci/steps/build-docker-image.sh
uses: ./ci/images/debian10
with:
args: ./ci/steps/build-docker-image.sh
- name: Upload release image
uses: actions/upload-artifact@v2
with:
name: release-images
path: ./release-images
docker-arm64:
runs-on: ubuntu-arm64-latest
needs: linux-arm64
steps:
- uses: actions/checkout@v1
- name: Download release package
uses: actions/download-artifact@v2
with:
name: release-packages
path: ./release-packages
- name: Run ./ci/steps/build-docker-image.sh
2020-06-03 23:22:59 +03:00
uses: ./ci/images/centos7
with:
args: ./ci/steps/build-docker-image.sh
- name: Upload release image
uses: actions/upload-artifact@v2
with:
name: release-images
path: ./release-images