-
Notifications
You must be signed in to change notification settings - Fork 735
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
Showing
4,740 changed files
with
90,354 additions
and
151,703 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
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
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 |
---|---|---|
@@ -1,29 +1,65 @@ | ||
name: Extensions | ||
|
||
on: | ||
pull_request: | ||
push: | ||
paths: | ||
- 'extensions/**' | ||
- 'extension/**' | ||
- 'Cargo.toml' | ||
- 'Cargo.lock' | ||
- '.github/workflows/extensions.yml' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@master | ||
- name: Install dependencies | ||
run: | | ||
rustup toolchain update stable --no-self-update | ||
rustup default stable | ||
rustup component add clippy rustfmt | ||
- name: Run rustfmt | ||
run: cargo fmt -- --check | ||
- name: Run clippy | ||
run: cargo clippy --all -- -Dwarnings | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: xd009642/tarpaulin | ||
options: --security-opt seccomp=unconfined | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@master | ||
- name: Test & Coverage | ||
run: cargo tarpaulin --verbose --no-default-features --workspace --timeout 240 | ||
|
||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
|
||
arrays: [ | ||
os: { tag: "windows-latest", target: "i686-pc-windows-msvc" }, | ||
os: { tag: "windows-latest", target: "x86_64-pc-windows-msvc" }, | ||
] | ||
runs-on: ${{ matrix.arrays.os.tag }} | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Install stable Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
target: ${{ matrix.arrays.os.target }} | ||
toolchain: stable | ||
default: true | ||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Build | ||
shell: cmd | ||
run: | | ||
cd extensions | ||
mkdir build | ||
cd build | ||
cmake .. && cmake --build . | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
run: cargo build --verbose | ||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ace3_extensions-${{ matrix.os }}-debug | ||
path: extensions/build | ||
name: ${{ matrix.arrays.os.target }} | ||
path: target/debug/ace.dll | ||
if-no-files-found: error | ||
retention-days: 30 |
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,47 @@ | ||
name: HEMTT | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request_target: | ||
|
||
jobs: | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Install Arma 3 Tools | ||
uses: arma-actions/arma3-tools@master | ||
with: | ||
toolsUrl: ${{ secrets.ARMA3_TOOLS_URL }} | ||
- name: Checkout the source code | ||
uses: actions/checkout@v4 | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@v1 | ||
- name: Checkout pull request | ||
uses: actions/checkout@v4 | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
with: | ||
path: pullrequest | ||
ref: 'refs/pull/${{ github.event.number }}/merge' | ||
- name: Replace addons with pull request addons | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
run: | | ||
rm -r addons\ | ||
rm -r optionals\ | ||
rm -r include\ | ||
xcopy /e /h /q pullrequest\addons addons\ | ||
xcopy /e /h /q pullrequest\optionals optionals\ | ||
xcopy /e /h /q pullrequest\include include\ | ||
xcopy /y /h /q pullrequest\ace.dll ace.dll | ||
xcopy /y /h /q pullrequest\ace_x64.dll ace_x64.dll | ||
- name: Run HEMTT build | ||
run: hemtt build | ||
- name: Rename build folder | ||
run: mv .hemttout/build .hemttout/@ace | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ace3-${{ github.sha }} | ||
path: .hemttout/@* | ||
include-hidden-files: true # Because .hemttout is a hidden directory |
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
Oops, something went wrong.