Skip to content

Commit

Permalink
Bump version to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zu1k committed Apr 18, 2024
1 parent b9779bb commit 6914605
Show file tree
Hide file tree
Showing 12 changed files with 241 additions and 210 deletions.
15 changes: 0 additions & 15 deletions .cargo/config.toml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: weekly
interval: monthly
open-pull-requests-limit: 0
18 changes: 12 additions & 6 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker metadata
id: metadata
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/srun

- name: Build and release Docker images
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
platforms: linux/386,linux/amd64,linux/arm64/v8
target: srun
Expand Down
54 changes: 23 additions & 31 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build Releases
on:
release:
types: [published]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
Expand All @@ -16,35 +17,26 @@ jobs:
matrix:
target:
- i686-unknown-linux-musl
- x86_64-pc-windows-gnu
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- armv7-unknown-linux-musleabihf
- armv7-unknown-linux-gnueabihf
- arm-unknown-linux-gnueabi
- arm-unknown-linux-gnueabihf
- arm-unknown-linux-musleabi
- arm-unknown-linux-musleabihf
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- mips-unknown-linux-musl
- mips-unknown-linux-gnu
- mipsel-unknown-linux-musl
- mips64-unknown-linux-muslabi64
- mips64el-unknown-linux-muslabi64

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install dependences
run: sudo apt-get update -y && sudo apt-get install -y upx;

- name: Install Rust
uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
target: ${{ matrix.target }}
toolchain: nightly
default: true
override: true
toolchain: nightly-2024-04-17

- name: Install cross
run: cargo install cross
Expand Down Expand Up @@ -79,7 +71,7 @@ jobs:
- x86_64-apple-darwin
- aarch64-apple-darwin
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install GNU tar
if: runner.os == 'macOS'
Expand All @@ -88,14 +80,11 @@ jobs:
# echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
- name: Install Rust
uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
target: ${{ matrix.target }}
toolchain: nightly
default: true
override: true
toolchain: nightly-2024-04-17
targets: ${{ matrix.target }}

- name: Build release
shell: bash
Expand All @@ -115,20 +104,23 @@ jobs:
env:
RUSTFLAGS: "-C target-feature=+crt-static"
RUST_BACKTRACE: full
strategy:
matrix:
target:
- x86_64-pc-windows-msvc
- i686-pc-windows-msvc
- aarch64-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: nightly
default: true
override: true
toolchain: nightly-2024-04-17

- name: Build release
run: |
pwsh ./build/build-host-release.ps1
pwsh ./build/build-host-release.ps1 -t ${{ matrix.target }}
- name: Upload Github Assets
uses: softprops/action-gh-release@v1
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
env:
AUTH_SERVER_IP: ${{ secrets.AUTH_SERVER_IP }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -17,20 +17,18 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}

- name: Setup rust toolchain
run: rustup show
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-targets

- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# args: --all-features

- name: cargo build
run: cargo build --release --all-targets
Loading

0 comments on commit 6914605

Please sign in to comment.