From ada2974435e432f4a7fa399cf191ec09a7db90ca Mon Sep 17 00:00:00 2001 From: Pk11 Date: Wed, 16 Dec 2020 23:52:54 -0600 Subject: [PATCH] Update *actions* for making .dsi... (#78) Why was there still Azure... --- .github/workflows/building.yml | 5 +- azure-pipelines.yml | 100 --------------------------------- 2 files changed, 3 insertions(+), 102 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml index 7c4b687..631189b 100644 --- a/.github/workflows/building.yml +++ b/.github/workflows/building.yml @@ -34,10 +34,11 @@ jobs: - name: Build & Package GodMode9i id: build run: | - make + make all dsi chmod +x make_cia - ./make_cia --srl="GodMode9i.nds" --id_0=$(git rev-parse --short=7 HEAD) --tikID=$(git rev-parse --short=16 HEAD) + ./make_cia --srl="GodMode9i.dsi" --id_0=$(git rev-parse --short=7 HEAD) --tikID=$(git rev-parse --short=16 HEAD) mkdir GodMode9i/ + cp GodMode9i.dsi GodMode9i/ cp GodMode9i.nds GodMode9i/ cp GodMode9i.cia GodMode9i/ 7z a GodMode9i.7z GodMode9i/ diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index d45274e..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,100 +0,0 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml - -trigger: - branches: - include: - - master - -name: $[format('{0:yyyyMMdd\-HHmmss}', pipeline.startTime)] - -pool: - vmImage: 'Ubuntu-16.04' - -variables: - CURRENT_DATE: $[format('{0:yyyyMMdd\-HHmmss}', pipeline.startTime)] - REPOSITORY_NAME: $(Build.Repository.Name) - -steps: -- script: | - curl -L https://github.com/devkitPro/pacman/releases/download/v1.0.2/devkitpro-pacman.amd64.deb -o pacman.deb - sudo apt update - sudo apt install p7zip-full haveged - sudo dpkg -i pacman.deb - sudo dkp-pacman -Sy - sudo dkp-pacman -S nds-dev --noconfirm - displayName: 'Setup environment' - -- script: | - echo $(TRAVIS_COMMIT) - echo $(COMMIT_TAG) - echo $(BUILD_SOURCEVERSION) - displayName: 'Echo Variables' - -- script: | - export DEVKITPRO="/opt/devkitpro" - export DEVKITARM="/opt/devkitpro/devkitARM" - sudo cp libmm7.a /opt/devkitpro/libnds/lib/libmm7.a - make all dsi - displayName: 'Build GodMode9i' - -- script: | - chmod +x make_cia - ./make_cia --srl="GodMode9i.dsi" --id_0=$(git rev-parse --short=7 HEAD) --tikID=$(git rev-parse --short=16 HEAD) - mkdir GodMode9i/ - cp GodMode9i.dsi GodMode9i/ - cp GodMode9i.nds GodMode9i/ - cp GodMode9i.cia GodMode9i/ - 7z a GodMode9i.7z GodMode9i/ - cp GodMode9i.7z $(Build.ArtifactStagingDirectory)/GodMode9i.7z - echo '##vso[task.setvariable variable=COMMIT_TAG]'$(git log --format=%h -1) - echo '##vso[task.setvariable variable=COMMIT_MESSAGE]'$(git log --pretty=format:"%an - %s" -1) - displayName: 'Pack 7z' - -- script: | - export COMMIT_TAG="$(git log --format=%h -1)" - git config --global user.email "flamekat54@aol.com" - git config --global user.name "TWLBot" - git clone --depth 1 https://$GITHUB_TOKEN@github.com/TWLBot/Builds.git - cd Builds/extras - cp ../../GodMode9i.7z GodMode9i.7z - git stage . - git commit -m "GodMode9i | $COMMIT_TAG" - git push origin master - git tag v$CURRENT_DATE - git log -1 --format="%H" >> travisCommit.txt - echo "2428412f374d13bf3f378dd36bd9c69c207964a6" >> travisCommit.txt - echo '##vso[task.setvariable variable=TWLBOT_COMMIT]'$(git log -1 --format="%H") - displayName: "Commit to TWLBot/Builds (/extras)" - -- task: GitHubRelease@0 - displayName: "Release to TWLBot/Builds" - inputs: - gitHubConnection: TWLBot - repositoryName: TWLBot/Builds - action: create - target: $(TWLBOT_COMMIT) - tagSource: 'manual' - tag: v$(CURRENT_DATE) - title: GodMode9i | $(COMMIT_TAG) - releaseNotesSource: input - releaseNotes: $(COMMIT_MESSAGE) - assets: '$(Build.ArtifactStagingDirectory)/**/*' - isPreRelease: true - addChangeLog: false - -- script: | - curl -o send.sh https://raw.githubusercontent.com/DS-Homebrew/discord-webhooks/master/send-azure.sh - chmod +x send.sh - ./send.sh success $WEBHOOK_URL - condition: succeeded() - displayName: 'Send success webhook' - -- script: | - curl -o send.sh https://raw.githubusercontent.com/DS-Homebrew/discord-webhooks/master/send-azure.sh - chmod +x send.sh - ./send.sh failure $WEBHOOK_URL - condition: failed() - displayName: 'Send failure webhook'