Skip to content

Commit

Permalink
README.md: Link nightly verions (#530)
Browse files Browse the repository at this point in the history
Relates to #273.
  • Loading branch information
Indy2222 authored Jun 21, 2023
1 parent ad40d46 commit 1b396d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 67 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,64 +110,3 @@ jobs:
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- name: Run cargo-udeps
run: cargo udeps

build_release:
name: Release Build
runs-on: ${{ matrix.os }}
if: github.ref == 'refs/heads/main'
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3

- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v2
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
- name: Git LFS Pull
run: git lfs pull

- uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: actions/cache@v3
id: rust-cache
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: build-release-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}

- name: Install Linux Dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y libasound2-dev libudev-dev
- run: rustc --version && cargo --version
- name: Install cargo-auditable
run: cargo install --force cargo-auditable
- name: Build
env:
RUSTFLAGS: '-C target-feature=+sse3,+avx'
run: cargo auditable build --release

- name: Prepare Build Files
shell: bash
run: |
mkdir pack
mv target/release/de_game pack/de || :
mv target/release/de_game.exe pack/de.exe || :
mv assets pack/
- name: Store Release Build
uses: actions/upload-artifact@v3
with:
name: de-binary-${{ runner.os }}
path: pack
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ Feedback, bug reports, and other [contributions](#contributing) are welcome.

Game controls & gameplay tutorial is at [TUTORIAL.md](/TUTORIAL.md).

## Using Build from `main` Branch
## Downloading Nightly Builds

A ZIP file with a binary and all assets is produced by a GitHub Action which is
run on every push to `main` branch. You can browse the actions
[here](https://github.com/DigitalExtinction/Game/actions).
1. Download nightly ZIP file for your OS and CPU:

On a “usual setup,” it is sufficient to extract the ZIP file and execute the
binary called `de` or `de.exe`.
* [Linux (`x86_64-unknown-linux-gnu`)](https://download.de-game.org/x86_64-unknown-linux-gnu/nightly.zip)
* [Windows (`x86_64-pc-windows-gnu`)](https://download.de-game.org/x86_64-pc-windows-gnu/nightly.zip)
* [macOS with M series (`aarch64-apple-darwin`)](https://download.de-game.org/aarch64-apple-darwin/nightly.zip)
* [macOS with Intel (`x86_64-apple-darwin`)](https://download.de-game.org/x86_64-apple-darwin/nightly.zip)

2. Extract the ZIP file.

3. Execute binary file called `de` or `de.exe`.

## Building from Source

Expand Down

0 comments on commit 1b396d2

Please sign in to comment.