-
Notifications
You must be signed in to change notification settings - Fork 34
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
1 parent
7f42250
commit 5c746f0
Showing
15 changed files
with
628 additions
and
308 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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
name: Linux build | ||
on: | ||
push: | ||
branches: [master] | ||
push: | ||
branches: [master] | ||
jobs: | ||
linux-build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: i686-unknown-linux-gnu | ||
override: true | ||
linux-build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: i686-unknown-linux-gnu | ||
override: true | ||
|
||
- name: Install g++-multilib | ||
run: | | ||
sudo apt update | ||
sudo apt install g++-multilib -y | ||
- name: Build auxmos | ||
run: cargo build --target=i686-unknown-linux-gnu --release --features "all_reaction_hooks katmos" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Linux compile | ||
path: target/i686-unknown-linux-gnu/release/libauxmos.* | ||
- name: Install g++-multilib | ||
run: | | ||
sudo apt update | ||
sudo apt install g++-multilib -y | ||
- name: Build auxmos | ||
run: cargo build --target=i686-unknown-linux-gnu --release --features "citadel_reactions katmos" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Linux compile | ||
path: target/i686-unknown-linux-gnu/release/libauxmos.* |
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,21 +1,21 @@ | ||
name: Check compile | ||
on: pull_request | ||
jobs: | ||
linux-build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: i686-unknown-linux-gnu | ||
override: true | ||
linux-build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: i686-unknown-linux-gnu | ||
override: true | ||
|
||
- name: Install g++-multilib | ||
run: | | ||
sudo apt update | ||
sudo apt install g++-multilib -y | ||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
- name: Check auxmos build | ||
run: cargo check --target=i686-unknown-linux-gnu --release --features "all_reaction_hooks katmos" | ||
- name: Install g++-multilib | ||
run: | | ||
sudo apt update | ||
sudo apt install g++-multilib -y | ||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
- name: Check auxmos build | ||
run: cargo check --target=i686-unknown-linux-gnu --release --features "citadel_reactions katmos" |
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,77 +1,77 @@ | ||
name: Build Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
name: Build and Release | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-20.04 | ||
target_name: i686-unknown-linux-gnu | ||
artifact_name: libauxmos.so | ||
- os: windows-latest | ||
target_name: i686-pc-windows-msvc | ||
artifact_name: auxmos.dll | ||
debug_pdb_name: auxmos.pdb | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
release: | ||
name: Build and Release | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-20.04 | ||
target_name: i686-unknown-linux-gnu | ||
artifact_name: libauxmos.so | ||
- os: windows-latest | ||
target_name: i686-pc-windows-msvc | ||
artifact_name: auxmos.dll | ||
debug_pdb_name: auxmos.pdb | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Toolchains (Windows) | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: i686-pc-windows-msvc | ||
if: matrix.os == 'windows-latest' | ||
- name: Setup Toolchains (Windows) | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: i686-pc-windows-msvc | ||
if: matrix.os == 'windows-latest' | ||
|
||
- name: Install g++ multilib | ||
run: | | ||
sudo dpkg --add-architecture i386 | ||
sudo apt-get update | ||
sudo apt-get install build-essential g++-multilib libc6-i386 libstdc++6:i386 | ||
if: matrix.os == 'ubuntu-20.04' | ||
- name: Install g++ multilib | ||
run: | | ||
sudo dpkg --add-architecture i386 | ||
sudo apt-get update | ||
sudo apt-get install build-essential g++-multilib libc6-i386 libstdc++6:i386 | ||
if: matrix.os == 'ubuntu-20.04' | ||
|
||
- name: Setup Toolchains (Ubuntu) | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: i686-unknown-linux-gnu | ||
if: matrix.os == 'ubuntu-20.04' | ||
- name: Setup Toolchains (Ubuntu) | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: i686-unknown-linux-gnu | ||
if: matrix.os == 'ubuntu-20.04' | ||
|
||
- name: Build auxmos (Windows) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: stable | ||
command: build | ||
args: --target i686-pc-windows-msvc --release --features "all_reaction_hooks katmos" | ||
if: matrix.os == 'windows-latest' | ||
- name: Build auxmos (Windows) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: stable | ||
command: build | ||
args: --target i686-pc-windows-msvc --release --features "citadel_reactions katmos" | ||
if: matrix.os == 'windows-latest' | ||
|
||
- name: Build auxmos (Ubuntu) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: stable | ||
command: build | ||
args: --target i686-unknown-linux-gnu --release --features "generic_fire_hook katmos" | ||
if: matrix.os == 'ubuntu-20.04' | ||
- name: Build auxmos (Ubuntu) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: stable | ||
command: build | ||
args: --target i686-unknown-linux-gnu --release --features "citadel_reactions katmos" | ||
if: matrix.os == 'ubuntu-20.04' | ||
|
||
- name: Upload binary to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/${{ matrix.target_name }}/release/${{ matrix.artifact_name }} | ||
asset_name: ${{ matrix.artifact_name }} | ||
tag: ${{ github.ref }} | ||
- name: Upload binary to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/${{ matrix.target_name }}/release/${{ matrix.artifact_name }} | ||
asset_name: ${{ matrix.artifact_name }} | ||
tag: ${{ github.ref }} | ||
|
||
- name: Upload debug informations to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/${{ matrix.target_name }}/release/${{ matrix.debug_pdb_name }} | ||
asset_name: ${{ matrix.debug_pdb_name }} | ||
tag: ${{ github.ref }} | ||
if: matrix.os == 'windows-latest' | ||
- name: Upload debug informations to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/${{ matrix.target_name }}/release/${{ matrix.debug_pdb_name }} | ||
asset_name: ${{ matrix.debug_pdb_name }} | ||
tag: ${{ github.ref }} | ||
if: matrix.os == 'windows-latest' |
Oops, something went wrong.