Skip to content

Commit

Permalink
Merge pull request #14 from unkcpz/remove-lock-and-build-ci
Browse files Browse the repository at this point in the history
Remove cargo lock file and add build CI
  • Loading branch information
unkcpz authored Nov 13, 2024
2 parents da233f0 + d259107 commit 781a145
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 896 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build

on:
pull_request:
push:

jobs:
build:
name: Build
runs-on: ${{ matrix.os }}

strategy:
matrix:
# You can add more, for any target you'd like!
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-gnu

- build: macos-amd
os: macos-latest
target: x86_64-apple-darwin

- build: macos-amd
os: macos-latest
target: aarch64-apple-darwin

- build: windows-gnu
os: windows-latest
target: x86_64-pc-windows-msvc

steps:
- uses: actions/checkout@v4

- name: Get the release version from the tag
run: echo "VERSION=nightly-$(date +'%Y-%m-%d')-${{ github.sha }}" >> $GITHUB_ENV
shell: bash

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- name: Setup Cache
uses: Swatinem/rust-cache@v2

- name: Build Binary
run: cargo build --verbose --release --target ${{ matrix.target }}

2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Build Binary
run: cargo build --verbose --locked --release --target ${{ matrix.target }}
run: cargo build --verbose --release --target ${{ matrix.target }}

- name: Build archive
shell: bash
Expand Down
Loading

0 comments on commit 781a145

Please sign in to comment.