Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into v4.0.4
Browse files Browse the repository at this point in the history
# Conflicts:
#	Cargo.lock
  • Loading branch information
Power2All committed Nov 29, 2024
2 parents 3ba4832 + 22cd48a commit ccedcf5
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/all_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: All Build

on:
push:
branches:
- master

env:
CARGO_TERM_COLOR: always

jobs:
upgrade:
name: Build on ${{ matrix.os }} (${{ matrix.toolchain }})
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
toolchain: [nightly, stable]

steps:
- name: Checkout code
uses: actions/checkout@v4

- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}

- name: Build project
run: cargo build --release --verbose
49 changes: 49 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Weekly Update

on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade:
name: Build on Ubuntu Latest (Stable)
runs-on: ubuntu-latest

steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_APP_KEY }}

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}

- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Update Cargo.lock
run: cargo update --verbose

- name: Build
run: cargo build --release --verbose

- name: Push changes
continue-on-error: true
run: |
git config user.name ${{ secrets.GH_USER }}
git config user.email "${{ secrets.GH_MAIL }}"
git add Cargo.lock
git commit -m "Weekly Cargo.lock update"
git push

0 comments on commit ccedcf5

Please sign in to comment.