Skip to content

Commit c0772d0

Browse files
authored
Merge pull request #7 from athenavm/runs-on
Add runs-on runner config
2 parents 9b29b66 + 3589027 commit c0772d0

File tree

3 files changed

+26
-67
lines changed

3 files changed

+26
-67
lines changed

.github/workflows/build_and_release.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55
push:
66
tags:
77
- "*"
8-
# branches:
9-
# - main
10-
# paths-ignore:
11-
# - README.md
8+
branches:
9+
- main
10+
paths-ignore:
11+
- README.md
1212

1313
permissions:
1414
contents: write
@@ -41,18 +41,23 @@ jobs:
4141
build-and-release:
4242
needs: prepare
4343
timeout-minutes: 120
44-
runs-on: ${{ matrix.os }}
44+
runs-on: ${{ matrix.runner }}
4545

4646
strategy:
4747
matrix:
48-
os:
49-
# self-hosted ARM macOS runner
50-
- self-hosted
51-
- ubuntu-latest
48+
include:
49+
- runner: [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"]
50+
os: ubuntu
51+
- runner: [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"]
52+
os: ubuntu
53+
- runner: self-hosted
54+
os: macos
55+
- runner: macos-13
56+
os: macos
5257

5358
steps:
5459
- name: Free Disk Space (Ubuntu)
55-
if: matrix.os == 'ubuntu-latest'
60+
if: matrix.os == 'ubuntu'
5661
uses: jlumbroso/free-disk-space@main
5762
with:
5863
tool-cache: true
@@ -66,13 +71,13 @@ jobs:
6671
- uses: actions/checkout@v4
6772

6873
- name: Install ninja and riscv-tools
69-
if: matrix.os == 'ubuntu-latest'
74+
if: matrix.os == 'ubuntu'
7075
run: |
7176
sudo apt update
7277
sudo apt-get -y install ninja-build gcc-riscv64-unknown-elf
7378
7479
- name: Install ninja and riscv-tools
75-
if: contains(matrix.os, 'macos')
80+
if: matrix.os == 'macos'
7681
run: |
7782
brew install ninja
7883
brew tap riscv-software-src/riscv

.github/workflows/ci.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
11
name: CI
22

33
on:
4-
workflow_call:
54
workflow_dispatch:
65

76
jobs:
87
build:
98
strategy:
109
fail-fast: false
1110
matrix:
12-
include:
13-
- os: ubuntu-latest
14-
triple: x86_64-unknown-linux-gnu
15-
- os: macos-14
16-
triple: aarch64-apple-darwin
17-
- os: macos-13
18-
triple: x86_64-apple-darwin
19-
# - os: buildjet-32vcpu-ubuntu-2004
20-
# triple: x86_64-unknown-linux-gnu
21-
# - os: buildjet-32vcpu-ubuntu-2204-arm
22-
# triple: aarch64-unknown-linux-gnu
23-
runs-on: ${{ matrix.os }}
11+
runner:
12+
- [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"]
13+
- [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"]
14+
- self-hosted
15+
- macos-13
16+
runs-on: ${{ matrix.runner }}
2417
steps:
2518
- name: Install nightly toolchain
2619
id: rustc-toolchain
@@ -50,12 +43,7 @@ jobs:
5043
path: athena
5144

5245
- name: Build
53-
run: GITHUB_ACTIONS=false ATHENA_BUILD_DIR=$GITHUB_WORKSPACE/toolchain cargo run --bin cargo-athena -- athena build-toolchain
46+
run:
47+
GITHUB_ACTIONS=false ATHENA_BUILD_DIR=$GITHUB_WORKSPACE/toolchain cargo run --bin cargo-athena -- athena
48+
build-toolchain
5449
working-directory: athena
55-
56-
- name: Archive build output
57-
uses: actions/upload-artifact@v3
58-
with:
59-
name: athena-rust-toolchain-${{ matrix.triple }}
60-
path: |
61-
athena/athena-rust-toolchain-${{ matrix.triple }}.tar.gz

.github/workflows/release.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)