Skip to content

Commit

Permalink
Fix #7 by using older version of rust nightly
Browse files Browse the repository at this point in the history
Building release version with lto optimization fails with nightlies after 2020-04-29, so we just use that one for now.
  • Loading branch information
jschwe committed May 6, 2020
1 parent aa75993 commit 8864c2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [nightly]
rust: [nightly-2020-04-29]
include:
- os: macOS-latest
rust: 'nightly'
rust: 'nightly-2020-04-29'
components: 'rust-src'
targets: 'x86_64-apple-darwin'
- os: windows-latest
rust: 'nightly'
rust: 'nightly-2020-04-29'
components: 'rust-src'
targets: 'x86_64-pc-windows-msvc'
- os: ubuntu-latest
rust: 'nightly'
rust: 'nightly-2020-04-29'
components: 'rust-src'
targets: 'x86_64-unknown-linux-gnu'

Expand All @@ -46,6 +46,8 @@ jobs:
run: cargo --version
- name: Install cargo-download
run: cargo install cargo-download
- name: Set override for Rust version
run: rustup override set ${{ matrix.rust }}
- name: Building dev version
run:
cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
rust: [nightly]
rust: [nightly-2020-04-29]
include:
- os: ubuntu-latest
rust: 'nightly'
rust: 'nightly-2020-04-29'
components: 'rust-src, llvm-tools-preview'
targets: 'x86_64-unknown-linux-gnu'

Expand All @@ -43,6 +43,10 @@ jobs:
run: cargo install cargo-xbuild
- name: Install qemu/nasm
run: sudo apt-get update --fix-missing && sudo apt-get install qemu-system-x86 nasm
- name: Set override for Rust version
run: |
rustup override set ${{ matrix.rust }}
cd loader && rustup override set ${{ matrix.rust }}
- name: Building dev version
run:
cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit
Expand Down

0 comments on commit 8864c2f

Please sign in to comment.