Skip to content

Commit

Permalink
Merge pull request #12 from golemfactory/windows_build
Browse files Browse the repository at this point in the history
CI. Dummy runtime. Dummy offer. Miners removed.
  • Loading branch information
pwalski authored Oct 30, 2023
2 parents 8e2da57 + 4362c0c commit 5cd5543
Show file tree
Hide file tree
Showing 19 changed files with 2,830 additions and 534 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches: [ "main" ]
tags:
- v*
- pre-rel-*
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always

jobs:
test:
name: CI

runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.71.0
components: clippy, rustfmt

- uses: Swatinem/rust-cache@v2

- run: cargo tree --locked

- run: cargo fmt --all -- --check

- run: cargo clippy --all-targets --all-features --workspace -- -D warnings

- run: cargo test --all-features --workspace

- name: Release Build
if: startsWith(github.ref, 'refs/tags/')
run: cargo build --workspace --release

- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: target/release/*.exe
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre-rel-v') }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
Expand Down
Loading

0 comments on commit 5cd5543

Please sign in to comment.