Skip to content

Commit

Permalink
Use gh runners and cancel concurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Dec 19, 2023
1 parent ed410ac commit 0e3e043
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,36 @@ on:
schedule:
- cron: "34 18 * * 3"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
# linux-self-hosted:
# runs-on: [self-hosted, linux]
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Build
# run: make -j8 V=1
# - name: Test
# run: ./allTests.py --workers=4

linux-latest:
runs-on: [self-hosted, linux]
runs-on: [ubuntu-latest]
steps:
- name: Install dependencies
run: sudo apt-get install -y python3 python3-pip ruby openjdk-8-jdk nodejs php-cli liblmdb-dev libmcpp-dev
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup ccache
uses: hendrikmuhs/[email protected]
- name: Build
run: make -j8 V=1
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
make -j3 V=1
- name: Test
run: ./allTests.py --workers=4
run: ./allTests.py --workers=3

macos-latest:
runs-on: [macos-latest]
Expand All @@ -30,7 +50,7 @@ jobs:
run: python3 -m pip install passlib cryptography
- name: Checkout repository
uses: actions/checkout@v3
- name: ccache
- name: Setup ccache
uses: hendrikmuhs/[email protected]
- name: Build
run: |
Expand All @@ -46,6 +66,15 @@ jobs:
uses: microsoft/[email protected]
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
**/bin
**/obj
key: ${{ runner.os }}-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-
- name: Build
run: msbuild /m cpp\msbuild\ice.proj
# - name: Test
Expand Down

0 comments on commit 0e3e043

Please sign in to comment.