Skip to content

Commit

Permalink
Created Github Actions build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Barquadd committed Dec 27, 2022
1 parent f2fbcc5 commit eb37fdd
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
push:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Cross
run: cargo install cross --git https://github.com/cross-rs/cross --locked


- name: Build Linux x64
run: cross build --target x86_64-unknown-linux-gnu --release

- name: Upload Linux x64 Build Artifact
uses: actions/[email protected]
with:
name: eme-linux
path: target/x86_64-unknown-linux-gnu/release/eme


- name: Build Windows x64
run: cross build --target x86_64-pc-windows-gnu --release

- name: Upload Windows x64 Build Artifact
uses: actions/[email protected]
with:
name: eme-windows
path: target/x86_64-pc-windows-gnu/release/eme.exe

0 comments on commit eb37fdd

Please sign in to comment.