Skip to content

Commit 3e94713

Browse files
committed
Fix hermit-os#7 by using older version of rust nightly
Building release version with lto optimization fails with nightlies after 2020-04-29, so we just use that one for now.
1 parent aa75993 commit 3e94713

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
strategy:
1919
matrix:
2020
os: [ubuntu-latest, windows-latest, macOS-latest]
21-
rust: [nightly]
21+
rust: [nightly-2020-04-29]
2222
include:
2323
- os: macOS-latest
24-
rust: 'nightly'
24+
rust: 'nightly-2020-04-29'
2525
components: 'rust-src'
2626
targets: 'x86_64-apple-darwin'
2727
- os: windows-latest
28-
rust: 'nightly'
28+
rust: 'nightly-2020-04-29'
2929
components: 'rust-src'
3030
targets: 'x86_64-pc-windows-msvc'
3131
- os: ubuntu-latest
32-
rust: 'nightly'
32+
rust: 'nightly-2020-04-29'
3333
components: 'rust-src'
3434
targets: 'x86_64-unknown-linux-gnu'
3535

@@ -46,6 +46,8 @@ jobs:
4646
run: cargo --version
4747
- name: Install cargo-download
4848
run: cargo install cargo-download
49+
- name: Set override for Rust version
50+
run: rustup override set ${{ matrix.rust }}
4951
- name: Building dev version
5052
run:
5153
cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
strategy:
2020
matrix:
2121
os: [ubuntu-latest]
22-
rust: [nightly]
22+
rust: [nightly-2020-04-29]
2323
include:
2424
- os: ubuntu-latest
25-
rust: 'nightly'
25+
rust: 'nightly-2020-04-29'
2626
components: 'rust-src, llvm-tools-preview'
2727
targets: 'x86_64-unknown-linux-gnu'
2828

@@ -43,6 +43,8 @@ jobs:
4343
run: cargo install cargo-xbuild
4444
- name: Install qemu/nasm
4545
run: sudo apt-get update --fix-missing && sudo apt-get install qemu-system-x86 nasm
46+
- name: Set override for Rust version
47+
run: rustup override set ${{ matrix.rust }}
4648
- name: Building dev version
4749
run:
4850
cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit

0 commit comments

Comments
 (0)