Skip to content

Commit

Permalink
ci: upload mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Nov 11, 2024
1 parent 9b4ebe0 commit 09fdd73
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,21 @@ jobs:
with:
name: symphony-v${{ steps.app_version.outputs.version }}-apk
path: ${{ env.OUTPUT_DIR }}/symphony-v${{ steps.app_version.outputs.version }}.apk
if-no-files-found: error

- name: 🚀 Upload aab
uses: actions/upload-artifact@v4
with:
name: symphony-v${{ steps.app_version.outputs.version }}-aab
path: ${{ env.OUTPUT_DIR }}/symphony-v${{ steps.app_version.outputs.version }}.aab
if-no-files-found: error

- name: 🚀 Upload mapping
uses: actions/upload-artifact@v4
with:
name: mapping
path: ${{ env.OUTPUT_DIR }}/mapping.txt
if-no-files-found: error

- name: 🚀 Upload native symbols
uses: actions/upload-artifact@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.launch
import kotlinx.serialization.Serializable

class Groove(private val symphony: Symphony) : Symphony.Hooks {
@Serializable
enum class Kinds {
SONG,
ALBUM,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ import io.github.zyrouge.symphony.ui.view.settings.UpdateSettingsViewRoute
import io.github.zyrouge.symphony.utils.ActivityUtils
import kotlinx.serialization.Serializable

@Serializable
enum class SettingsViewElements {
MediaFolders,
}
Expand Down
11 changes: 10 additions & 1 deletion cli/android/move-outputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,27 @@ const main = async () => {
),
path.join(Paths.distDir, `symphony-v${APP_VERSION_NAME}.aab`),
] as const;
const mapping = [
path.join(
Paths.appDir,
`app/build/outputs/mapping/${APP_BUILD_TYPE}/mapping.txt`,
),
path.join(Paths.distDir, "mapping.txt"),
] as const;
const symbols = [
path.join(
Paths.appDir,
`app/build/outputs/native-debug-symbols/${APP_BUILD_TYPE}/native-debug-symbols.zip`,
),
path.join(Paths.distDir, `native-debug-symbols.zip`),
path.join(Paths.distDir, "native-debug-symbols.zip"),
] as const;
await fs.ensureDir(Paths.distDir);
await fs.move(apk[0], apk[1]);
console.log(`Moved apk to "${apk[1]}".`);
await fs.move(aab[0], aab[1]);
console.log(`Moved aab to "${aab[1]}".`);
await fs.move(mapping[0], mapping[1]);
console.log(`Moved mapping to "${mapping[1]}".`);
if (await fs.exists(symbols[0])) {
await fs.move(symbols[0], symbols[1]);
console.log(`Moved native-debug-symbols to "${symbols[1]}".`);
Expand Down

0 comments on commit 09fdd73

Please sign in to comment.