ソースを参照

workflows: Correct build reproducibility

- REPRODUCIBLE_BUILD needs to be a string
- Fetch all history to generate versionCode correctly
Peter Cai 1 年間 前
コミット
bf121e07a4
2 ファイル変更3 行追加1 行削除
  1. 1 0
      .forgejo/workflows/build-debug.yml
  2. 2 1
      .forgejo/workflows/release.yml

+ 1 - 0
.forgejo/workflows/build-debug.yml

@@ -14,6 +14,7 @@ jobs:
         uses: https://gitea.angry.im/actions/checkout@v3
         with:
           submodules: recursive
+          fetch-depth: 0
 
       - name: Decode Secret Signing Configuration
         uses: https://gitea.angry.im/actions/base64-to-file@v1

+ 2 - 1
.forgejo/workflows/release.yml

@@ -4,7 +4,7 @@ on:
 
 env:
   # Enable reproducibility-related build system workarounds
-  REPRODUCIBLE_BUILD: true
+  REPRODUCIBLE_BUILD: 'true'
 
 jobs:
   release:
@@ -17,6 +17,7 @@ jobs:
         uses: https://gitea.angry.im/actions/checkout@v3
         with:
           submodules: recursive
+          fetch-depth: 0
 
       - name: Decode Secret Signing Configuration
         uses: https://gitea.angry.im/actions/base64-to-file@v1