File tree Expand file tree Collapse file tree 3 files changed +26
-67
lines changed Expand file tree Collapse file tree 3 files changed +26
-67
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
tags :
7
7
- " *"
8
- # branches:
9
- # - main
10
- # paths-ignore:
11
- # - README.md
8
+ branches :
9
+ - main
10
+ paths-ignore :
11
+ - README.md
12
12
13
13
permissions :
14
14
contents : write
@@ -41,18 +41,23 @@ jobs:
41
41
build-and-release :
42
42
needs : prepare
43
43
timeout-minutes : 120
44
- runs-on : ${{ matrix.os }}
44
+ runs-on : ${{ matrix.runner }}
45
45
46
46
strategy :
47
47
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
52
57
53
58
steps :
54
59
- name : Free Disk Space (Ubuntu)
55
- if : matrix.os == 'ubuntu-latest '
60
+ if : matrix.os == 'ubuntu'
56
61
uses : jlumbroso/free-disk-space@main
57
62
with :
58
63
tool-cache : true
@@ -66,13 +71,13 @@ jobs:
66
71
- uses : actions/checkout@v4
67
72
68
73
- name : Install ninja and riscv-tools
69
- if : matrix.os == 'ubuntu-latest '
74
+ if : matrix.os == 'ubuntu'
70
75
run : |
71
76
sudo apt update
72
77
sudo apt-get -y install ninja-build gcc-riscv64-unknown-elf
73
78
74
79
- name : Install ninja and riscv-tools
75
- if : contains( matrix.os, 'macos')
80
+ if : matrix.os == 'macos'
76
81
run : |
77
82
brew install ninja
78
83
brew tap riscv-software-src/riscv
Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
- workflow_call :
5
4
workflow_dispatch :
6
5
7
6
jobs :
8
7
build :
9
8
strategy :
10
9
fail-fast : false
11
10
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 }}
24
17
steps :
25
18
- name : Install nightly toolchain
26
19
id : rustc-toolchain
50
43
path : athena
51
44
52
45
- 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
54
49
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments