Skip to content

Commit 13f8685

Browse files
committed
Update runner config
1 parent 9c71b0a commit 13f8685

File tree

3 files changed

+24
-73
lines changed

3 files changed

+24
-73
lines changed

.github/workflows/build_and_release.yml

Lines changed: 15 additions & 18 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,26 +41,23 @@ jobs:
4141
build-and-release:
4242
needs: prepare
4343
timeout-minutes: 120
44-
runs-on: ${{ matrix.runner.label }}
44+
runs-on: ${{ matrix.runner }}
4545

4646
strategy:
4747
matrix:
48-
runner:
49-
- label: self-hosted
50-
os: macos
51-
- label: [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"]
48+
include:
49+
- runner: [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"]
5250
os: ubuntu
53-
- label: [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"]
51+
- runner: [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"]
5452
os: ubuntu
55-
# label: [self-hosted]
56-
# include:
57-
# - label: runs-on
58-
# runner: 16cpu-linux-x64
59-
# run-id: "${{ github.run_id }}"
53+
- runner: self-hosted
54+
os: macos
55+
- runner: macos-13
56+
os: macos
6057

6158
steps:
6259
- name: Free Disk Space (Ubuntu)
63-
if: matrix.runner.os == 'ubuntu'
60+
if: matrix.os == 'ubuntu'
6461
uses: jlumbroso/free-disk-space@main
6562
with:
6663
tool-cache: true
@@ -74,13 +71,13 @@ jobs:
7471
- uses: actions/checkout@v4
7572

7673
- name: Install ninja and riscv-tools
77-
if: matrix.runner.os == 'ubuntu'
74+
if: matrix.os == 'ubuntu'
7875
run: |
7976
sudo apt update
8077
sudo apt-get -y install ninja-build gcc-riscv64-unknown-elf
8178
8279
- name: Install ninja and riscv-tools
83-
if: matrix.runner.os == 'macos'
80+
if: matrix.os == 'macos'
8481
run: |
8582
brew install ninja
8683
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)