mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 12:16:00 +08:00
修改readme
This commit is contained in:
64
.github/workflows/codeql-analysis.yml
vendored
64
.github/workflows/codeql-analysis.yml
vendored
@@ -12,14 +12,14 @@
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main", "dev" ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ "main", "dev" ]
|
||||
workflow_dispatch:
|
||||
|
||||
schedule:
|
||||
- cron: '32 12 * * 5'
|
||||
# push:
|
||||
# branches: [ "main", "dev" ]
|
||||
# pull_request:
|
||||
# branches: [ "main", "dev" ]
|
||||
# schedule:
|
||||
# - cron: '32 12 * * 5'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
@@ -39,34 +39,34 @@ jobs:
|
||||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
|
@@ -1,8 +1,9 @@
|
||||
name: go-update
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "1 2 * * 5"
|
||||
# schedule:
|
||||
# - cron: "1 2 * * 5"
|
||||
|
||||
jobs:
|
||||
go:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -26,7 +27,7 @@ jobs:
|
||||
go get -u
|
||||
go mod download
|
||||
|
||||
- name: Git push
|
||||
- name: Git push
|
||||
run: |
|
||||
git init
|
||||
git config --local user.name "github-actions[bot]"
|
||||
@@ -38,7 +39,7 @@ jobs:
|
||||
git commit -m "update go.mod $(date +%Y.%m.%d.%H.%M)"
|
||||
#git push -f -u origin _autoaction
|
||||
git push -u origin _autoaction
|
||||
|
||||
|
||||
# 删除无用 workflow runs;
|
||||
- name: Delete workflow runs
|
||||
uses: GitRML/delete-workflow-runs@main
|
10
.github/workflows/go.yml
vendored
10
.github/workflows/go.yml
vendored
@@ -1,10 +1,12 @@
|
||||
name: Go
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main", "dev" ]
|
||||
pull_request:
|
||||
branches: [ "main", "dev" ]
|
||||
workflow_dispatch:
|
||||
|
||||
# push:
|
||||
# branches: [ "main", "dev" ]
|
||||
# pull_request:
|
||||
# branches: [ "main", "dev" ]
|
||||
|
||||
jobs:
|
||||
|
||||
|
31
.github/workflows/release-tag-version.yml
vendored
31
.github/workflows/release-tag-version.yml
vendored
@@ -1,6 +1,7 @@
|
||||
name: release-tag-version
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- "v0.*"
|
||||
@@ -9,20 +10,38 @@ jobs:
|
||||
Build:
|
||||
name: build-binary
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TZ: Asia/Shanghai
|
||||
steps:
|
||||
- name: Hello world
|
||||
run: |
|
||||
uname -a
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.20'
|
||||
go-version-file: 'server/go.mod'
|
||||
cache-dependency-path: 'server/go.sum'
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '16'
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: 'web/yarn.lock'
|
||||
|
||||
Docker:
|
||||
name: build-docker
|
||||
- # https://github.com/docker/setup-qemu-action
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: build
|
||||
run: |
|
||||
mkdir server/ui
|
||||
touch server/ui/index.html
|
||||
sudo apt-get install -y -q gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
||||
aarch64-linux-gnu-gcc -v
|
||||
aarch64-linux-gnu-g++ -v
|
||||
bash build.sh github_action
|
||||
|
||||
# Docker:
|
||||
# name: build-docker
|
Reference in New Issue
Block a user