Skip to content

Commit

Permalink
- pull-transifex.yml: move temporary file work to /tmp/
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schwarz committed Dec 5, 2024
1 parent 54017be commit da8de5e
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/pull-transifex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y clang libpython2.7 libpython2.7-dev

- name: Download Swift
run: wget https://download.swift.org/swift-6.0.2-release/ubuntu2004/swift-6.0.2-RELEASE/swift-6.0.2-RELEASE-ubuntu20.04.tar.gz
run: wget -o /tmp/swift.tar.gz https://download.swift.org/swift-6.0.2-release/ubuntu2004/swift-6.0.2-RELEASE/swift-6.0.2-RELEASE-ubuntu20.04.tar.gz

- name: Extract Swift
run: tar xzf swift-6.0.2-RELEASE-ubuntu20.04.tar.gz
run: tar xzf /tmp/swift.tar.gz

- name: Move Swift to /usr/share
run: sudo mv swift-6.0.2-RELEASE-ubuntu20.04 /usr/share/swift
run: sudo mv /tmp/swift /usr/share/swift

- name: Add Swift to PATH
run: echo "export PATH=/usr/share/swift/usr/bin:\$PATH" >> $GITHUB_ENV
Expand All @@ -53,15 +53,10 @@ jobs:
run: cat tools/ocstringstool/ocstringstool/main.swift

- name: Compile Swift file
run: swiftc tools/ocstringstool/ocstringstool/main.swift -o ocstringstool
run: swiftc tools/ocstringstool/ocstringstool/main.swift -o /tmp/ocstringstool

- name: Run compiled Swift program
run: ./ocstringstool normalize "ownCloudSDK/Resources" "ownCloudUI/Resources"

- name: Cleanup download and ocstringstool
run: |
rm swift-*-ubuntu20.04.tar.gz
rm ocstringstool
run: /tmp/ocstringstool normalize "ownCloudSDK/Resources" "ownCloudUI/Resources"

- uses: GuillaumeFalourd/git-commit-push@v1.3
with:
Expand Down

0 comments on commit da8de5e

Please sign in to comment.