Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
echo "export LIBCLANG_PATH=${MSYS2_LOCATION}/mingw64/bin" >> ~/.bash_profile
echo "export BINDGEN_EXTRA_CLANG_ARGS=--target=x86_64-w64-windows-gnu -isystem${MSYS2_LOCATION}/mingw64/include" >> ~/.bash_profile

- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: true
- run: |
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
rustup default stable-x86_64-pc-windows-gnu

- name: Setup cache for x264
uses: actions/cache@v4
uses: actions/cache@v5
id: x264-cache
with:
path: ${{ matrix.x264-cache-path }}
Expand Down Expand Up @@ -182,9 +182,11 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: Build debug
# disable windows for now, since it's the slowest build
if: contains(matrix.os, 'windows') == false
run: cargo build --verbose --features ${{ matrix.features-debug }}
if: contains(matrix.os, 'ubuntu')
run: |
# Disabling debug symbols here, we don't actually use the debug artifacts, we only care about
# whether it compiles or not
CARGO_PROFILE_DEV_DEBUG=0 cargo build --verbose --features ${{ matrix.features-debug }}

- name: Build release
run: cargo build --release --verbose --features ${{ matrix.features }}
Expand Down Expand Up @@ -214,7 +216,7 @@ jobs:
mv target/release/${{ matrix.server-bin }} bin-artifacts

- name: Upload Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ddnet-rs-${{ steps.nameparts.outputs.os }}-${{ steps.nameparts.outputs.arch }}
path: bin-artifacts
Expand All @@ -228,7 +230,12 @@ jobs:
mv target/release/${{ matrix.bin }} bin-artifacts

- name: Upload Artifacts steam
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ddnet-rs-${{ steps.nameparts.outputs.os }}-${{ steps.nameparts.outputs.arch }}-steam
path: bin-artifacts

- name: Minimize Rust cache
run: |
rm -rf target/debug/build/ffmpeg-sys-next-*/out/ffmpeg-*
rm -rf target/release/build/ffmpeg-sys-next-*/out/ffmpeg-*
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: true
- run: |
Expand Down
Loading