Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth authored Jul 20, 2024
1 parent 4ccd5d7 commit e9a3679
Showing 1 changed file with 4 additions and 42 deletions.
46 changes: 4 additions & 42 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,11 @@ jobs:

- run: rustup target add x86_64-unknown-linux-musl

- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.29.3'

# install choosenim and nim
#- run: wget https://nim-lang.org/choosenim/init.sh -O init-choosenim.sh
#- run: ls -la
#- run: chmod +x init-choosenim.sh
#- run: CHOOSENIM_CHOOSE_VERSION="stable" ./init-choosenim.sh -y

- uses: iffy/install-nim@v5
with:
version: binary:2.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: add Absytree as git safe.directory so nimble can install stuff
run: git config --global --add safe.directory /__w/Absytree/Absytree
Expand Down Expand Up @@ -94,31 +85,20 @@ jobs:
# create release packages
- run: PATH=/github/home/.nimble/bin:$PATH nim ./tools/package_release.nims -l
- run: ls -la release_linux
#- run: ls -la release_web

# make zips
- name: Zip release_linux
uses: vimtor/[email protected]
with:
files: release_linux
dest: release_linux.zip
#- name: Zip release_web
# uses: vimtor/[email protected]
# with:
# files: release_web
# dest: release_web.zip

# upload artifacts
- name: Upload release_linux
uses: actions/[email protected]
with:
name: release_linux
path: release_linux.zip
#- name: Upload release_web
# uses: actions/[email protected]
# with:
# name: release_web
# path: release_web.zip

build-absytree-windows:
name: Build Absytree Windows
Expand All @@ -127,29 +107,18 @@ jobs:
- name: Checkout the repo
uses: actions/[email protected]

# If I want a specific cmake version
# - name: Setup cmake
# uses: jwlawson/actions-setup-cmake@v2
# with:
# cmake-version: '3.29.3'

# If I want a specific rust version
#- name: Install latest nightly
# uses: actions-rs/[email protected]
# with:
# toolchain: stable
# override: true

- run: $env:TMP = "$env:USERPROFILE\T"
continue-on-error: true
- run: $env:TEMP = "$env:USERPROFILE\T"
continue-on-error: true
- run: echo $env:TMP $env:TEMP
continue-on-error: true

- uses: iffy/install-nim@v5
with:
version: binary:2.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Cache nimble modules
id: cache-nimble
Expand Down Expand Up @@ -211,13 +180,6 @@ jobs:
- name: Install stable rust toolchain
uses: dtolnay/[email protected]

- run: rustup target add x86_64-unknown-linux-musl

- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.29.3'

- name: add Absytree as git safe.directory so nimble can install stuff
run: git config --global --add safe.directory /__w/Absytree/Absytree

Expand Down

0 comments on commit e9a3679

Please sign in to comment.