Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Update rust
|
|
run: |
|
|
rustup default nightly
|
|
rustup update
|
|
- name: Build
|
|
run: |
|
|
./build_release.sh
|
|
- name: Upload file
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: gopher64-linux
|
|
path: target/release/gopher64
|
|
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Update rust
|
|
shell: bash
|
|
run: |
|
|
rustup default nightly
|
|
rustup update
|
|
- name: Build
|
|
shell: bash
|
|
run: |
|
|
./build_release.sh
|
|
- name: Upload file
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: gopher64-windows
|
|
path: target/release/gopher64.exe
|