mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 05:19:47 -06:00
- Update the actions in the GitHub Actions workflows to their latest versions. - Run the workflows on the latest versions of the platforms where appropriate. - Set the `check-latest` field of the `actions/setup-node` action to `true` to use the latest release of the specified Node.js version instead of using the cached one when there's a new release available. - Explicitly specify the action versions instead of using the `latest` tag.
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
name: CE Windows Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
buildnumber:
|
|
description: 'Build number'
|
|
default: ''
|
|
required: true
|
|
|
|
jobs:
|
|
build_dist:
|
|
runs-on: windows-2019
|
|
outputs:
|
|
release_name: ${{ steps.build_dist.outputs.release_name }}
|
|
branch: ${{ steps.build_dist.outputs.branch }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ github.event.inputs.buildnumber }}
|
|
- name: Use Node.js 18.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18.x
|
|
check-latest: true
|
|
cache: npm
|
|
- name: Build distribution
|
|
id: build_dist
|
|
run: powershell -File etc/scripts/build-dist-win.ps1
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: dist
|
|
path: out/dist-bin
|
|
|
|
deploy:
|
|
needs: [build_dist]
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Use Node.js 18.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18.x
|
|
check-latest: true
|
|
cache: npm
|
|
- name: Download the built distribution
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: dist
|
|
path: out/dist-bin
|
|
- name: Deploy
|
|
uses: jakejarvis/s3-sync-action@master
|
|
with:
|
|
args: --acl public-read --follow-symlinks
|
|
env:
|
|
AWS_S3_BUCKET: compiler-explorer
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
SOURCE_DIR: out/dist-bin
|
|
DEST_DIR: dist/gh/${{ needs.build_dist.outputs.branch }}
|