mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-10 06:03:24 +08:00
Rename workflows and add headers
This commit is contained in:
41
.github/workflows/build-on-Linux-x64.yml
vendored
Normal file
41
.github/workflows/build-on-Linux-x64.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
# ---------------------------------------------------------------
|
||||
# Workflow File : build-on-Linux-x64.yml
|
||||
# File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
# Contributors : Nul None <nul@none.org>
|
||||
# |
|
||||
# Created On : <2023-09-14>
|
||||
# Last Modified : <2025-03-06>
|
||||
#
|
||||
# Build chsrc on Linux (x64) and upload it to GitHub: the 'pre' release
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
name: Build on Linux x64
|
||||
on:
|
||||
push:
|
||||
branches: [ "gh-build" ]
|
||||
pull_request:
|
||||
branches: [ "gh-build" ]
|
||||
|
||||
jobs:
|
||||
build-and-upload:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
make CI CI_ARTIFACT_NAME=chsrc-x64-linux
|
||||
|
||||
- name: List files
|
||||
run: ls *-linux
|
||||
|
||||
- name: Upload
|
||||
uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
tag_name: pre
|
||||
files: |
|
||||
chsrc-x64-linux
|
||||
token: ${{ secrets.UPLOAD_TO_GITHUB }}
|
Reference in New Issue
Block a user