Skip to content

Commit

Permalink
Merge branch 'feature/rewrite'
Browse files Browse the repository at this point in the history
  • Loading branch information
DevYukine committed Nov 19, 2023
2 parents ce3aed8 + 32c6379 commit 3f24512
Show file tree
Hide file tree
Showing 42 changed files with 1,390 additions and 3,221 deletions.
81 changes: 54 additions & 27 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,30 @@ jobs:
lib: musl
steps:
- name: Checkout Source code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Cache Rust dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.target.build_target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
rustfoil-cli/target
rustfoil-lib/target
key: ${{ matrix.target.build_target }}-cargo-${{ hashFiles('**/**/Cargo.lock') }}
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target.build_target }}
override: true
- name: Install Build-Tools
run: sudo apt-get install build-essential gcc-multilib
run: sudo apt-get install build-essential gcc-multilib zstd musl-tools musl-dev
- name: Build
uses: actions-rs/cargo@v1
env:
TARGET_CC: clang
with:
command: build
args: --release --target=${{ matrix.target.build_target }}
run: cd rustfoil-cli && cargo build --release --target=${{ matrix.target.build_target }}
- name: Upload Action Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: rustfoil_${{ runner.OS }}_${{ matrix.target.lib }}_${{ matrix.target.arch }}
path: target/${{ matrix.target.build_target }}/release/rustfoil
path: rustfoil-cli/target/${{ matrix.target.build_target }}/release/rustfoil-cli

windows:
name: Windows Build
Expand All @@ -69,28 +64,60 @@ jobs:
arch: x64
steps:
- name: Checkout Source code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Cache Rust dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.target.build_target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
rustfoil-cli/target
rustfoil-lib/target
key: ${{ matrix.target.build_target }}-cargo-${{ hashFiles('**/**/Cargo.lock') }}
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target.build_target }}
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target=${{ matrix.target.build_target }}
run: cd rustfoil-cli && cargo build --release --target=${{ matrix.target.build_target }}
- name: Upload Action Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: rustfoil_${{ runner.OS }}_${{ matrix.target.arch }}.exe
path: target/${{ matrix.target.build_target }}/release/rustfoil.exe
path: rustfoil-cli/target/${{ matrix.target.build_target }}/release/rustfoil-cli.exe

macos:
name: MacOS Build
runs-on: macos-latest
strategy:
matrix:
target:
- build_target: x86_64-apple-darwin
arch: x64
- build_target: aarch64-apple-darwin
arch: aarch64
steps:
- name: Checkout Source code
uses: actions/checkout@v4
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
rustfoil-cli/target
rustfoil-lib/target
key: ${{ matrix.target.build_target }}-cargo-${{ hashFiles('**/**/Cargo.lock') }}
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target.build_target }}
- name: Build
run: cd rustfoil-cli && cargo build --release --target=${{ matrix.target.build_target }}
- name: Upload Action Artifact
uses: actions/upload-artifact@v3
with:
name: rustfoil_${{ runner.OS }}_${{ matrix.target.arch }}
path: rustfoil-cli/target/${{ matrix.target.build_target }}/release/rustfoil-cli
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.github_token }}
version-file: './Cargo.toml'
version-file: './rustfoil-cli/Cargo.toml'
version-path: "package.version"
- name: Create Release
id: create_release
Expand Down
Loading

0 comments on commit 3f24512

Please sign in to comment.