-
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.
- Loading branch information
Deploy from CI
committed
Dec 9, 2024
0 parents
commit 49d9439
Showing
7,559 changed files
with
1,444,819 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,62 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
tag: | ||
description: "Git tag" | ||
required: true | ||
type: string | ||
release: | ||
description: "Cargo build profile" | ||
type: boolean | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_NET_GIT_FETCH_WITH_CLI: true | ||
BIN-FOLDER: bundle${{ !inputs.release && '-dev-only' || '' }} | ||
BIN-NAME: Audioware-windows-latest-${{ inputs.tag }}${{ !inputs.release && '-DEV_ONLY' || '' }} | ||
CHECKSUM-NAME: checksum${{ !inputs.release && '-DEV_ONLY' || '' }} | ||
BUILD-PROFILE: ${{ !inputs.release && 'debug' || 'release' }} | ||
BUILD-FEATURES: ${{ !inputs.release && 'hot-reload' || '' }} | ||
ARTIFACT-NAME: windows-latest-${{ inputs.tag }}${{ !inputs.release && '-dev-only' || '' }}-artifact | ||
|
||
jobs: | ||
bundle: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Prepare Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: x86_64-pc-windows-msvc | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: release | ||
- name: Additional tools | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
- name: Bundle mod files | ||
run: just ci ${{ env.BIN-FOLDER }}\${{ env.BIN-NAME }} ${{ env.BUILD-PROFILE }} ${{ env.BUILD-FEATURES }} | ||
- name: Zip files | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: zip | ||
filename: ${{ env.BIN-NAME }}.zip | ||
directory: ${{ env.BIN-FOLDER }} | ||
path: . | ||
- name: Generate zip checksum | ||
run: Get-FileHash -Path "${{ env.BIN-FOLDER }}\${{ env.BIN-NAME }}.zip" -Algorithm SHA256 | Select-Object -ExpandProperty Hash > "${{ env.CHECKSUM-NAME }}.txt" | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.ARTIFACT-NAME }} | ||
path: ${{ env.BIN-FOLDER }}/${{ env.BIN-NAME }}.zip | ||
if-no-files-found: error | ||
- name: Upload artifact checksum | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.ARTIFACT-NAME }}-checksum | ||
path: ${{ env.CHECKSUM-NAME }}.txt | ||
if-no-files-found: error |
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,93 @@ | ||
name: Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/**" | ||
- "book/book.toml" | ||
- "book/pages/**" | ||
- "**.md" | ||
- "**.rs" | ||
- "**.toml" | ||
env: | ||
MDBOOK_VERSION: '0.4.40' | ||
MDBOOK_CODEBLOCKS_VERSION: '0.1.15' | ||
MDBOOK_ADMONISH_VERSION: '1.18.0' | ||
|
||
jobs: | ||
docs: | ||
runs-on: windows-2019 | ||
concurrency: | ||
group: pages-docs | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Prepare Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: x86_64-pc-windows-msvc | ||
- name: Additional tools | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: release | ||
- name: Bundle docs files | ||
run: just preassemble | ||
- name: Upload artifact rustdoc | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rustdoc-latest-artifact | ||
path: book/pages/docs | ||
if-no-files-found: error | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: docs | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Additional tools | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: book/pages/docs | ||
merge-multiple: true | ||
- name: Install mdbook | ||
run: | | ||
mkdir mdbook | ||
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v${{ env.MDBOOK_VERSION }}/mdbook-v${{ env.MDBOOK_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook | ||
echo `pwd`/mdbook >> $GITHUB_PATH | ||
- name: Install mdbook-codeblocks | ||
run: | | ||
mkdir mdbook-codeblocks | ||
curl -sSL https://github.com/Roms1383/mdbook-codeblocks/releases/download/v${{ env.MDBOOK_CODEBLOCKS_VERSION }}/mdbook-codeblocks-v${{ env.MDBOOK_CODEBLOCKS_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-codeblocks | ||
echo `pwd`/mdbook-codeblocks >> $GITHUB_PATH | ||
- name: Install mdbook-admonish | ||
run: | | ||
mkdir mdbook-admonish | ||
curl -sSL https://github.com/tommilligan/mdbook-admonish/releases/download/v${{ env.MDBOOK_ADMONISH_VERSION }}/mdbook-admonish-v${{ env.MDBOOK_ADMONISH_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-codeblocks | ||
echo `pwd`/mdbook-admonish >> $GITHUB_PATH | ||
- name: Deploy GitHub Pages | ||
run: | | ||
just assemble | ||
git worktree add gh-pages | ||
git config user.name "Deploy from CI" | ||
git config user.email "" | ||
cd gh-pages | ||
# Delete the ref to avoid keeping history. | ||
git update-ref -d refs/heads/gh-pages | ||
rm -rf * | ||
mv ../book/site/html/* . | ||
git add . | ||
git commit -m "Deploy $GITHUB_SHA to gh-pages" | ||
git push --force --set-upstream origin gh-pages |
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,33 @@ | ||
name: CI | ||
on: push | ||
|
||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: true | ||
|
||
jobs: | ||
quality: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Prepare Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: x86_64-pc-windows-msvc | ||
components: clippy, rustfmt | ||
- name: Additional tools | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-machete,just | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: debug | ||
- name: Check | ||
run: just check | ||
- name: QA | ||
run: just qa | ||
- name: Unit-tests | ||
run: just test | ||
- name: Unused dependencies | ||
run: cargo machete |
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,48 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v*" | ||
- "rc*" | ||
- "beta*" | ||
- "alpha*" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
IS_DRAFT: ${{ startsWith(github.ref_name, 'beta') || startsWith(github.ref_name, 'alpha') }} | ||
IS_PRERELEASE: ${{ startsWith(github.ref_name, 'rc') }} | ||
IS_RELEASE: ${{ startsWith(github.ref_name, 'v') }} | ||
BIN-NAME: Audioware-windows-latest-${{ github.ref_name }} | ||
CARGO_NET_GIT_FETCH_WITH_CLI: true | ||
|
||
jobs: | ||
gaming: | ||
uses: ./.github/workflows/bundle.yml | ||
with: | ||
tag: ${{ github.ref_name }} | ||
release: true | ||
modding: | ||
uses: ./.github/workflows/bundle.yml | ||
with: | ||
tag: ${{ github.ref_name }} | ||
release: false | ||
release: | ||
if: ${{ startsWith(github.event.ref, 'refs/tags') }} | ||
runs-on: windows-2019 | ||
needs: [gaming, modding] | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: release | ||
merge-multiple: true | ||
- name: Create release ${{ github.ref_name }} | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "release/${{ env.BIN-NAME }}.zip,release/${{ env.BIN-NAME }}-DEV_ONLY.zip,release/checksum.txt,release/checksum-DEV_ONLY.txt" | ||
draft: ${{ env.IS_DRAFT }} | ||
prerelease: ${{ env.IS_PRERELEASE }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifactErrorsFailBuild: true |
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,19 @@ | ||
/target | ||
/Cargo.lock | ||
/red4ext | ||
/r6 | ||
/.vscode | ||
/community | ||
/book/screenshots | ||
/book/PATTERNS.md | ||
/book/PHASES.md | ||
/book/REVERSE.md | ||
/book/site | ||
/book/pages/docs | ||
# auto-generated | ||
/book/theme/css/mdbook-admonish-custom.css | ||
.env | ||
/audioware-copy | ||
/release-audioware | ||
checksum.txt | ||
rustc-ice-*.txt |
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,5 @@ | ||
{ | ||
"MD013": false, | ||
"MD033": false, | ||
"MD048": false | ||
} |
Oops, something went wrong.