Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 committed Jul 13, 2022
1 parent 92510b6 commit 4ea0eca
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: main

on:
push:
pull_request:

jobs:
backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build
run: |
docker build . -t wslbridge2
docker run --rm wslbridge2 tar -cf - -C /build/bin wslbridge2-backend | tar -xvf -
- name: Upload
uses: actions/upload-artifact@v3
with:
name: wslbridge2-backend
path: wslbridge2-backend

frontend:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update
uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: true
install: gcc make
- name: Build
shell: msys2 {0}
run: |
make RELEASE=1
- name: Upload
uses: actions/upload-artifact@v3
with:
name: wslbridge2.exe
path: bin/wslbridge2.exe

0 comments on commit 4ea0eca

Please sign in to comment.