Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux CI on AWS (AMD64)
name: Linux CI

env:
# "Source" is set in the vcpkg install step
Expand All @@ -15,52 +15,20 @@ on:
- 'docker/**'
- '.github/**'
- '**.md'
- '!.github/workflows/vcpkg_ci_aws_amd64*'
- '!.github/workflows/vcpkg_ci_amd64*'
push:
paths-ignore:
- 'docker/**'
- '.github/**'
- '**.md'
- '!.github/workflows/vcpkg_ci_aws_amd64*'
- '!.github/workflows/vcpkg_ci_amd64*'
tags-ignore:
- 'v*'
branches:
- 'master'

jobs:
start-runner:
name: Start self-hosted EC2 runner
runs-on: ubuntu-latest
strategy:
matrix:
ec2:
- { ami: ami-0610b26d76319237e, instance-type: m6i.8xlarge}
outputs:
label: ${{ steps.start-ec2-runner.outputs.label }}
ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Start EC2 runner
id: start-ec2-runner
uses: machulav/ec2-github-runner@v2
with:
mode: start
github-token: ${{ secrets.GHA_PAT }}
ec2-image-id: ${{ matrix.ec2.ami }}
ec2-instance-type: ${{ matrix.ec2.instance-type }}
subnet-id: subnet-0deb935f0bbfe1a5d
security-group-id: sg-0f6a02eb80fafb982
aws-resource-tags: > # optional, requires additional permissions
[
{"Key": "Name", "Value": "ec2-github-runner"},
{"Key": "GitHubRepository", "Value": "${{ github.repository }}"}
]
do-the-job:
build:
strategy:
fail-fast: false
matrix:
Expand All @@ -81,8 +49,7 @@ jobs:
VCPKG_DEFAULT_HOST_TRIPLET: ${{ matrix.host.triplet }}

name: Do the job on the runner
needs: start-runner # required to start the main job when the runner is ready
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
runs-on: ubuntu-latest # run the job on the newly created runner
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -229,25 +196,3 @@ jobs:
run: |
rm -rf vcpkg/{buildtrees,installed,packages}
ccache --show-stats

stop-runner:
name: Stop self-hosted EC2 runner
needs:
- start-runner # required to get output from the start-runner job
- do-the-job # required to wait when the main job is done
runs-on: ubuntu-latest
if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Stop EC2 runner
uses: machulav/ec2-github-runner@v2
with:
mode: stop
github-token: ${{ secrets.GHA_PAT }}
label: ${{ needs.start-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}
261 changes: 0 additions & 261 deletions .github/workflows/vcpkg_ci_aws_arm64.yml

This file was deleted.

Loading