Skip to content

Commit

Permalink
Change github build action
Browse files Browse the repository at this point in the history
  • Loading branch information
rsribeiro committed Jan 12, 2024
1 parent ee4af01 commit 225a4e1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 90 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
platform:
- os_name: windows
os: windows-latest
bin: legbone.exe
- os_name: linux
os: ubuntu-latest
bin: legbone
- os_name: macos
os: macos-latest
bin: legbone

runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run tests
run: cargo test --verbose

- name: Build
run: cargo build --release --verbose

- name: Upload the build artifacts
uses: actions/upload-artifact@v4
with:
name: legbone-${{ matrix.platform.os_name }}
path: target/release/${{ matrix.platform.bin }}
30 changes: 0 additions & 30 deletions .github/workflows/build_linux.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/build_mac.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/build_windows.yml

This file was deleted.

0 comments on commit 225a4e1

Please sign in to comment.