forked from FloatTech/ZeroBot-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from FloatTech/master
[pull] master from FloatTech:master
- Loading branch information
Showing
135 changed files
with
3,497 additions
and
4,406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: / | ||
schedule: | ||
interval: daily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: 自动更新 nix 依赖 | ||
on: | ||
push: | ||
paths: | ||
- 'go.mod' | ||
- 'go.sum' | ||
- '.github/workflows/gomod2nix.yml' | ||
jobs: | ||
gomod2nix: | ||
name: gomod2nix update | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up nix | ||
uses: cachix/install-nix-action@v27 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@master | ||
with: | ||
go-version: "1.20" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@master | ||
|
||
- name: gomod2nix update | ||
run: | | ||
nix run github:nix-community/gomod2nix | ||
- name: Commit back | ||
if: ${{ !github.head_ref }} | ||
continue-on-error: true | ||
run: | | ||
git config --local user.name 'github-actions[bot]' | ||
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
git add --all | ||
git commit -m "chore: bump deps" | ||
- name: Create Pull Request | ||
if: ${{ !github.head_ref }} | ||
continue-on-error: true | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
delete-branch: true | ||
branch-suffix: short-commit-hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 打包最新版为 Docker Image | ||
|
||
on: [push] | ||
jobs: | ||
docker-builder: | ||
name: build docker | ||
runs-on: ubuntu-23.04 | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@master | ||
- run: sudo apt-get install -y qemu-user-static | ||
|
||
- name: Set up nix | ||
uses: cachix/install-nix-action@v27 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
extra_nix_config: | | ||
sandbox = true | ||
- name: Speed Up nix | ||
uses: DeterminateSystems/magic-nix-cache-action@main | ||
|
||
- name: build docker | ||
run: | | ||
mkdir output/ | ||
# https://discourse.nixos.org/t/nix-github-actions-aarch64/11034 | ||
nix build .#packages.aarch64-linux.docker_builder -o aarch64-linux.docker --print-out-paths --option system aarch64-linux --extra-platforms aarch64-linux | ||
cp $(readlink aarch64-linux.docker) ./output/aarch64-linux.docker.tar.gz | ||
nix build .#packages.x86_64-linux.docker_builder -o x86_64-linux.docker --print-out-paths --option system x86_64-linux --extra-platforms x86_64-linux | ||
cp $(readlink x86_64-linux.docker) ./output/x86_64-linux.docker.tar.gz | ||
# gomod2nix did not provide this | ||
# nix build .#packages.i686-linux.docker_builder -o i686-linux.docker --print-out-paths --option system i686-linux --extra-platforms i686-linux | ||
# cp $(readlink i686-linux.docker) ./output/i686-linux.docker.tar.gz | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@master | ||
if: ${{ !github.head_ref }} | ||
with: | ||
path: output/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ zerobot | |
ZeroBot-Plugin* | ||
*.syso | ||
/.direnv | ||
/result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,6 @@ builds: | |
goos: | ||
- windows | ||
goarch: | ||
- 386 | ||
- amd64 | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
flags: | ||
|
Oops, something went wrong.