mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-25 09:41:46 +08:00
Add linux and macos build
This commit is contained in:
parent
52ac675e2f
commit
292710a760
32
.github/workflows/linux.yml
vendored
Normal file
32
.github/workflows/linux.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: Linux Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "gh-pipeline" ]
|
||||
pull_request:
|
||||
branches: [ "gh-pipeline" ]
|
||||
|
||||
jobs:
|
||||
build-and-upload:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Compile chsrc x64
|
||||
run: |
|
||||
make CI CI_BUILD_NAME=chsrc-x64-linux
|
||||
|
||||
- name: List files
|
||||
run: ls *-linux
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
tag_name: preview
|
||||
files: |
|
||||
chsrc-x64-linux
|
||||
token: ${{ secrets.CHSRC_UPLOAD }}
|
32
.github/workflows/macos.yml
vendored
Normal file
32
.github/workflows/macos.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: macOS Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "gh-pipeline" ]
|
||||
pull_request:
|
||||
branches: [ "gh-pipeline" ]
|
||||
|
||||
jobs:
|
||||
build-and-upload:
|
||||
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Compile chsrc x64
|
||||
run: |
|
||||
make CI CI_BUILD_NAME=chsrc-x64-macos
|
||||
|
||||
- name: List files
|
||||
run: ls *-macos
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
tag_name: preview
|
||||
files: |
|
||||
chsrc-x64-macos
|
||||
token: ${{ secrets.CHSRC_UPLOAD }}
|
Loading…
Reference in New Issue
Block a user