Skip to content

Commit

Permalink
changing to commit date
Browse files Browse the repository at this point in the history
  • Loading branch information
lexi-the-cute committed Dec 20, 2024
1 parent 0ea044a commit 1cccd71
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
ANDROID_RELEASE_KEY_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
${{ github.workspace }}/android/gradlew assembleRelease
mkdir -p ${{ github.workspace }}/upload/android
Expand All @@ -119,7 +119,7 @@ jobs:
ANDROID_RELEASE_KEY_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
# export CARGO_NDK_ANDROID_TARGET="arm64-v8a"
sed -i "s/targets = [\"[a-z_0-9, ]*\"]/targets = [\"arm64\"]/" ${{ github.workspace }}/android/app/build.gradle
Expand All @@ -139,7 +139,7 @@ jobs:
ANDROID_RELEASE_KEY_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
# export CARGO_NDK_ANDROID_TARGET="armeabi-v7a"
sed -i "s/targets = [\"[a-z_0-9, ]*\"]/targets = [\"arm\"]/" ${{ github.workspace }}/android/app/build.gradle
Expand All @@ -159,7 +159,7 @@ jobs:
ANDROID_RELEASE_KEY_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
# export CARGO_NDK_ANDROID_TARGET="x86"
sed -i "s/targets = [\"[a-z_0-9, ]*\"]/targets = [\"x86\"]/" ${{ github.workspace }}/android/app/build.gradle
Expand All @@ -179,7 +179,7 @@ jobs:
ANDROID_RELEASE_KEY_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
# export CARGO_NDK_ANDROID_TARGET="x86_64"
sed -i "s/targets = [\"[a-z_0-9, ]*\"]/targets = [\"x86_64\"]/" ${{ github.workspace }}/android/app/build.gradle
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Build Engine (Release)
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
$HOME/.cargo/bin/cargo build --target wasm32-unknown-unknown --verbose --release --lib
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-linux-gnu-x86_64-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
source ${{ github.workspace }}/.build-scripts/exports/tools.sh
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
# Release is already specified by cargo appimage
# https://github.com/StratusFearMe21/cargo-appimage/issues/30
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-linux-musl-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Build Engine Server Only
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
$HOME/.cargo/bin/cargo build --verbose --target=x86_64-unknown-linux-musl --release --bin catgirl-engine --no-default-features --features server,logging-subscriber
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-wasm32-unknown-unknown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Build Engine (Release)
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
$HOME/.cargo/bin/cargo build --target wasm32-unknown-unknown --verbose --release --lib
# Generate Bindings
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-windows-gnu-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ jobs:
- name: Build Engine Client/Server
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
$HOME/.cargo/bin/cargo build --verbose --target=x86_64-pc-windows-gnu --release --bin catgirl-engine
# Compile Program
- name: Build Engine Server Only
run: |
# Sets the build timestamp to the current commit to make builds reproducible
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
export SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
export CARGO_TARGET_DIR="${{ github.workspace }}/.server-target"
$HOME/.cargo/bin/cargo build --verbose --target=x86_64-pc-windows-gnu --release --bin catgirl-engine --no-default-features --features server,logging-subscriber
Expand Down
2 changes: 1 addition & 1 deletion build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SCRIPT_DIR=`dirname "$SCRIPT"`
PROJECT_ROOT=$SCRIPT_DIR

# Build Vars
SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%at"`"
SOURCE_DATE_EPOCH="`git --no-pager log -1 --format="%ct"`"
PATH="$PROJECT_ROOT/.tools:$PATH"
PATH="$PROJECT_ROOT/.tools/butler:$PATH"

Expand Down

0 comments on commit 1cccd71

Please sign in to comment.